Files
wren/test/language/nonlocal/undefined.wren
Bob Nystrom a6739819b2 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.
2016-03-16 08:00:28 -07:00

5 lines
92 B
Plaintext

var fn = Fn.new {
System.print(Foo) // expect error
System.print(Bar) // expect error
}