Files
c3c/test/test_suite/expressions/opt_in_conv.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

9 lines
226 B
Plaintext

module test;
import std;
fn void main()
{
String s = "Hello";
Char16* title = String.to_utf16(s, mem).ptr; // #error: It is not possible to cast from
int? a;
float b = (float)a; // #error: It is not possible to cast from
}