mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
13 lines
181 B
C
13 lines
181 B
C
module foo;
|
|
|
|
fault Foo { ABC }
|
|
|
|
fn void test()
|
|
{
|
|
int x = Foo.ABC! ?? 123;
|
|
}
|
|
|
|
fn void test2()
|
|
{
|
|
int! y = Foo.ABC! ?? Foo.ABC!; // #error: The default value may not be an optional
|
|
} |