mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
10 lines
179 B
Plaintext
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; |