diff --git a/tests/kgtests/language/test_reassign.kg b/tests/kgtests/language/test_reassign.kg new file mode 100644 index 0000000..fe3026d --- /dev/null +++ b/tests/kgtests/language/test_reassign.kg @@ -0,0 +1,17 @@ + +a::10 +t("a=10"; a; 10) + +a::12 +t("a=12"; a; 12) + +.pyf("math";"pi") + +a::pi +t("a=math.pi"; a; pi) + +a::{pi} +t("a()=math.pi"; a(); pi) + +a::{2*pi} +t("a()=math.pi"; a(); 2*pi)