Files
c3c/test/test_suite/switch/failable_switch.c3

14 lines
180 B
C

fault MyError
{
FOO
}
fn void test()
{
int x = 0;
switch (x)
{
case MyError.FOO!: // #error: You cannot have a failable here
x = x + 1;
}
}