Files
c3c/test/test_suite/builtins/builtin_with_optional.c3
Christoffer Lerno 25bccf4883 New faults and syntax (#2034)
- Remove `[?]` syntax.
- Change `int!` to `int?` syntax.
- New `fault` declarations.
- Enum associated values can reference the calling enum.
2025-03-10 00:11:35 +01:00

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?'
}