diff --git a/unittests/operator_scoping.chai b/unittests/operator_scoping.chai new file mode 100644 index 00000000..e6f92726 --- /dev/null +++ b/unittests/operator_scoping.chai @@ -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); + +