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.
9 lines
226 B
Plaintext
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
|
|
} |