aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/stub.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
committerLi Jin <dragon-fly@qq.com>2021-02-17 11:22:07 +0800
commit7066392d1c974065181d95d93274136dcd625d43 (patch)
treecf51eafc2c52cbc12246a306bca172d799193d30 /spec/inputs/stub.yue
parent90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff)
downloadyuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz
yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2
yuescript-7066392d1c974065181d95d93274136dcd625d43.zip
stop reusing variables, rename project.
Diffstat (limited to 'spec/inputs/stub.yue')
-rw-r--r--spec/inputs/stub.yue18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/inputs/stub.yue b/spec/inputs/stub.yue
new file mode 100644
index 0000000..60347e7
--- /dev/null
+++ b/spec/inputs/stub.yue
@@ -0,0 +1,18 @@
1
2
3x = {
4 val: 100
5 hello: =>
6 print @val
7}
8
9fn = x\val
10print fn!
11print x\val!
12
13
14-- ... should be bubbled up anon functions
15((...)-> x = hello(...)\world)!
16
17nil
18