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

11 lines
221 B
C

int z;
optenum MyError
{
FOO,
}
fn void test(int a = z) {} // #error: Only constant expressions may be used as default values
fn void test2(int b = MyError.FOO!) {} // #error: Default arguments may not be failable