Files
c3c/test/test_suite/cast/cast_to_failable.c3
2021-11-16 17:46:44 +01:00

13 lines
152 B
C

errtype MyErr
{
FOO
}
fn void test()
{
int! x;
int! d = ($typeof(MyErr.FOO!))(x); // #error: Casting to a failable type is not allowed
}