zlox/samples/ch22_local_vars3.lox

8 lines
167 B
Plaintext
Raw Permalink Normal View History

2024-08-27 10:23:07 +02:00
{
var a = "outer";
{
// this is reporting "Error at 'a': Can't read local variable in its own initializer."
var a = a;
print a;
}
}