feat(selfhost-cli): surface parser diagnostics — syntax errors no longer pass check silently
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
[Package]
|
||||
Name = "parse_recovery"
|
||||
Version = "0.1.0"
|
||||
Type = "bin"
|
||||
@@ -0,0 +1,18 @@
|
||||
func Good() -> int {
|
||||
return 1;
|
||||
}
|
||||
|
||||
func Bad() -> int {
|
||||
let x: int = ;
|
||||
return 0;
|
||||
}
|
||||
|
||||
func AlsoBad() -> int {
|
||||
let y: int = 5 + ;
|
||||
let z: int = 6;
|
||||
return y;
|
||||
}
|
||||
|
||||
func AlsoGood() -> int {
|
||||
return 2;
|
||||
}
|
||||
Reference in New Issue
Block a user