From f1454bbbd13a71da2005ff789cde2da0e9eb81f6 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 22 Jan 2026 15:03:12 +0800 Subject: Adding tests. --- spec/inputs/with_scope_shadow.yue | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/inputs/with_scope_shadow.yue (limited to 'spec/inputs/with_scope_shadow.yue') diff --git a/spec/inputs/with_scope_shadow.yue b/spec/inputs/with_scope_shadow.yue new file mode 100644 index 0000000..a0d58cc --- /dev/null +++ b/spec/inputs/with_scope_shadow.yue @@ -0,0 +1,12 @@ +target = { + val: 1 + add: (n)=> + @val += n + @val +} + +result = with target + val = 100 + add 2 + +print result, target.val -- cgit v1.2.3-55-g6feb