mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
11 lines
221 B
C
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
|