Global scope bug. Variable with this name already declared in this scope.
mskorotkov opened this issue · comments
var a = 1;
var a = 2;
var a = 3;
print a;
// Output: 3
// Expect: Variable with this name already declared in this scope.
Language based on lox from book "Crafting Interpreters" by @munificent
mskorotkov opened this issue · comments
var a = 1;
var a = 2;
var a = 3;
print a;
// Output: 3
// Expect: Variable with this name already declared in this scope.