ChaiScript/unittests/operator_scoping.chai

15 lines
140 B
ChaiScript

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);