Files
c3c/test/test_suite/switch/failable_switch.c3
Christoffer Lerno cdabe8fd9e - Create optional with ~ instead of ?. return io::EOF?; becomes return io::EOF~.
- Deprecated use of `?` to create optional.
2026-01-20 16:10:28 +01:00

11 lines
145 B
Plaintext

faultdef FOO;
fn void test()
{
int x = 0;
switch (x)
{
case FOO~ : // #error: 'int?' to 'int'
x = x + 1;
}
}