mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
- Remove `[?]` syntax. - Change `int!` to `int?` syntax. - New `fault` declarations. - Enum associated values can reference the calling enum.
8 lines
298 B
Plaintext
8 lines
298 B
Plaintext
fn void test()
|
|
{
|
|
char* hello = "123";
|
|
String a = { '1', '2', '3' };
|
|
char[*] b = { '1', '2', '3' };
|
|
char[3] c = { '1', '2', '3' };
|
|
char* d = { '1', '2', '3' }; // #error: Pointers cannot be initialized using an initializer list, instead you need to take the address of an array
|
|
} |