[fine] Don't panic on this parse error
This commit is contained in:
parent
607847abc3
commit
f634e4da18
2 changed files with 19 additions and 4 deletions
8
fine/tests/expression/errors/broken_conditional.fine
Normal file
8
fine/tests/expression/errors/broken_conditional.fine
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fun test() {
|
||||
if true true { }
|
||||
}
|
||||
|
||||
// NOTE: These errors should be better
|
||||
// @expect-errors:
|
||||
// | 2:10: Error at 'true': expected a block after `if`
|
||||
// | 2:15: Error at '{': expect ';' to end an expression statement
|
||||
Loading…
Add table
Add a link
Reference in a new issue