Files
c3c/test/test_suite/cast/cast_to_failable.c3
Christoffer Lerno 322d714305 Dev (#404)
Remove 'errtype' name and reduce Expr / TypeInfo memory footprint.
2022-03-08 23:38:27 +01:00

13 lines
152 B
C

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