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.
12 lines
150 B
Plaintext
12 lines
150 B
Plaintext
fn int? foo()
|
|
{ return 1; }
|
|
|
|
|
|
fn int? bar()
|
|
{
|
|
defer {
|
|
foo()!!;
|
|
}
|
|
defer foo()!; // #error: Rethrows are not allowed inside of defers.
|
|
return 1;
|
|
} |