mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
10 lines
235 B
Plaintext
10 lines
235 B
Plaintext
// #deprecation: no
|
|
module test;
|
|
import std::collections::maybe;
|
|
|
|
fn void main()
|
|
{
|
|
Maybe{float} f = (Maybe) {.value=6.6, .has_value=true}; // #error: Did you mean the struct
|
|
Maybe{int}g = (Maybe) {.value=8, .has_value=true};
|
|
}
|