Files
c3c/test/test_suite/errors/optional_designated.c3
2025-02-18 18:53:30 +01:00

10 lines
164 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;