mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
* Change generic symbol resolution.
* Infer generic parameters lhs -> rhs: `List{int} x = list::NOHEAP`.
* Regression: Compiler segfault when assigning struct literal with too few members #2483
11 lines
207 B
Plaintext
11 lines
207 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: but no parameters where given
|
|
}
|
|
|