Files
c3c/test/test_suite/switch/failable_switch.c3
Christoffer Lerno f46697bc54 Updated casts (#684)
Cast code rework. Remove llvm_set_bool and friends.
2022-12-27 14:16:47 +01:00

14 lines
168 B
C

fault MyError
{
FOO
}
fn void test()
{
int x = 0;
switch (x)
{
case MyError.FOO!: // #error: cannot be converted
x = x + 1;
}
}