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.
15 lines
149 B
Plaintext
15 lines
149 B
Plaintext
module test;
|
|
|
|
struct Abc
|
|
{
|
|
int x;
|
|
int[*] y;
|
|
}
|
|
|
|
|
|
fn void test()
|
|
{
|
|
Abc x;
|
|
Abc y;
|
|
bool same = x.y == y.y; // #error: does not support comparisons
|
|
} |