mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update error message.
This commit is contained in:
@@ -4,6 +4,7 @@ fn int? test() => 1;
|
||||
|
||||
fn int main()
|
||||
{
|
||||
test()!; // #error: This expression is doing a rethrow
|
||||
test()!; // #error: Did you intend to use '!!' instead
|
||||
int? a = test()!; // #error: maybe you added '!' by mistake?
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user