mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
9 lines
229 B
Plaintext
9 lines
229 B
Plaintext
module test;
|
|
import std::collections::maybe;
|
|
|
|
fn void main()
|
|
{
|
|
maybe::Maybe(<float>) f = Maybe {.value=6.6, .has_value=true}; // #error: Did you mean the struct
|
|
maybe::Maybe(<int>)g = Maybe {.value=8, .has_value=true};
|
|
}
|