mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
10 lines
161 B
C
10 lines
161 B
C
module foo;
|
|
|
|
struct Foo { int a; }
|
|
struct Bar { int b; Foo f; }
|
|
fn void! main()
|
|
{
|
|
Bar { .f = Foo { foo() } }; // #error: not be discarded
|
|
}
|
|
|
|
fn int! foo() => 1; |