mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
11 lines
219 B
C
11 lines
219 B
C
|
|
int z;
|
|
|
|
fault 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
|