fix bug in let scoping resulting in unneccesary replacement - closes #193, closes #185

This commit is contained in:
Sebastian McKenzie
2014-11-19 13:46:00 +11:00
parent a884a26402
commit 7fc2fe41af
2 changed files with 24 additions and 8 deletions

View File

@@ -2,5 +2,12 @@ let x = 1;
{
let x = 2;
assert.equal(x, 2);
{
let x = 3;
assert.equal(x, 3);
x++;
assert.equal(x, 4);
}
}
assert.equal(x, 1);