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.
20 lines
153 B
Plaintext
20 lines
153 B
Plaintext
module foo;
|
|
|
|
fault TEST;
|
|
|
|
module bar;
|
|
import foo;
|
|
|
|
fn int? abc()
|
|
{
|
|
return foo::TEST?;
|
|
}
|
|
|
|
module baz;
|
|
import foo;
|
|
|
|
fn int? abc()
|
|
{
|
|
return foo::TEST?;
|
|
}
|