aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/backcall.moon
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-06-22 16:50:40 +0800
committerLi Jin <dragon-fly@qq.com>2020-06-22 16:50:40 +0800
commitcd2b60b101a398cb9356d746364e70eaed1860f1 (patch)
treea1fe71b76faabc4883f16905a94164ce5c23e692 /spec/inputs/backcall.moon
parent88c1052e700f38cf3d8ad82d469da4c487760b7e (diff)
downloadyuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.gz
yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.bz2
yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.zip
add support for local variable declared with attribute 'close' and 'const' for Lua 5.4.
Diffstat (limited to 'spec/inputs/backcall.moon')
-rw-r--r--spec/inputs/backcall.moon6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon
index b6fe24f..86b0ba3 100644
--- a/spec/inputs/backcall.moon
+++ b/spec/inputs/backcall.moon
@@ -79,7 +79,7 @@ do
79 f7! 79 f7!
80 80
81do 81do
82 {:result,:msg} = do 82 :result,:msg = do
83 (data)<- receiveAsync "filename.txt" 83 (data)<- receiveAsync "filename.txt"
84 print data 84 print data
85 (info)<- processAsync data 85 (info)<- processAsync data
@@ -107,6 +107,10 @@ alert "hi"
107 107
108x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y 108x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y
109 109
110x1 = 3 * -4 |> f
111
112x2 = 3 * -2 ^ 2 |> f
113
110y = 1 + not # 2 |> (a ^ c) |> b(3,_) * 4 ^ -123 |> f |> f1 or 123 114y = 1 + not # 2 |> (a ^ c) |> b(3,_) * 4 ^ -123 |> f |> f1 or 123
111 115
112nil 116nil