Files
c3c/test/test_suite7/errors/optional_designated.c3
2025-02-23 13:53:04 +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;