Files
c3c/test/test_suite/switch/failable_switch.c3
Christoffer Lerno 37bb16cca1 Updated cast code.
2023-09-12 12:48:52 +02:00

14 lines
165 B
C

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