Add unit test exposing how scope can leak into operator calls

This commit is contained in:
Jason Turner 2012-05-21 07:56:38 -06:00
parent 349425fe8a
commit 654f7e6b01

View File

@ -0,0 +1,14 @@
def `+`(x, y)
{
print(i);
}
auto i = 10;
// It should fail because `+` should not be able to see the i
"1" + 1;
assert_false(true);