Report undefined variable errors on the line where they are used.
This also more importantly ensures the error message for one has a bounded length even if the variable name is pathologically long.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
var fn = Fn.new {
|
||||
System.print(Foo)
|
||||
System.print(Bar)
|
||||
System.print(Foo) // expect error
|
||||
System.print(Bar) // expect error
|
||||
}
|
||||
|
||||
// expect error line 6
|
||||
Reference in New Issue
Block a user