mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Remove `[?]` syntax. - Change `int!` to `int?` syntax. - New `fault` declarations. - Enum associated values can reference the calling enum.
8 lines
122 B
Plaintext
8 lines
122 B
Plaintext
fn void main()
|
|
{
|
|
float x;
|
|
x = $$fma(x, x, x);
|
|
float? y;
|
|
y = $$fma(x, x, y);
|
|
x = $$fma(x, x, y); // #error: 'float?'
|
|
} |