mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
11 lines
285 B
Plaintext
11 lines
285 B
Plaintext
// #deprecation: no
|
|
module test;
|
|
import std::collections::maybe;
|
|
|
|
fn void test()
|
|
{
|
|
maybe::Maybe{float} f = (Maybe) {.value=6.6, .has_value=true};
|
|
Maybe x; // #error: 'Maybe' is defined in the generic module 'std::collections::maybe', did you forget the parameters '{ ... }'
|
|
}
|
|
|