Files
c3c/test/test_suite/errors/optional_designated.c3
2025-03-19 23:25:56 +01:00

10 lines
179 B
Plaintext

module foo;
struct Foo { int a; }
struct Bar { int b; Foo f; }
fn void main()
{
(Bar) { .f = (Foo) { foo() } }; // #error: An optional value was discarded
}
fn int? foo() => 1;