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
10 lines
200 B
Plaintext
10 lines
200 B
Plaintext
// #deprecation: no
|
|
module test;
|
|
import std::collections::maybe;
|
|
|
|
fn void main()
|
|
{
|
|
Maybe{float} f = (Maybe) {.value=6.6, .has_value=true};
|
|
Maybe{int}g = (Maybe) {.value=8, .has_value=true};
|
|
}
|