mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
error recovery!
This commit is contained in:
parent
c0c08488ba
commit
ef04f21100
18 changed files with 799 additions and 366 deletions
5
ui-tests/basic_recovery.nil
Normal file
5
ui-tests/basic_recovery.nil
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function main() = (
|
||||
let a: Int = "";
|
||||
let b: Int = "";
|
||||
c;
|
||||
);
|
||||
12
ui-tests/basic_recovery.stderr
Normal file
12
ui-tests/basic_recovery.stderr
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
error: cannot find c
|
||||
--> $DIR/basic_recovery.nil:4
|
||||
4 | c;
|
||||
^
|
||||
error: cannot assign String to Int
|
||||
--> $DIR/basic_recovery.nil:2
|
||||
2 | let a: Int = "";
|
||||
^
|
||||
error: cannot assign String to Int
|
||||
--> $DIR/basic_recovery.nil:3
|
||||
3 | let b: Int = "";
|
||||
^
|
||||
|
|
@ -2,3 +2,7 @@ error: unexpected end of file
|
|||
--> $DIR/mismatched_parens.nil:2
|
||||
2 |
|
||||
^
|
||||
error: `main` function not found
|
||||
--> $DIR/mismatched_parens.nil:1
|
||||
1 | function main() = (
|
||||
^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue