Files
c3c/test/test_suite/errors/optional_designated.c3

10 lines
161 B
Plaintext

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;