aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-28 03:06:59 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-28 03:06:59 +0800
commit9f88a3f1d9535154a5f6479f3ab8cf46cdebef2a (patch)
tree13bc2e82997ea869023f533afc45b13012c8b6c7 /spec
parent7291098ca8f65658eb4f6b502e8b94071474b701 (diff)
downloadyuescript-9f88a3f1d9535154a5f6479f3ab8cf46cdebef2a.tar.gz
yuescript-9f88a3f1d9535154a5f6479f3ab8cf46cdebef2a.tar.bz2
yuescript-9f88a3f1d9535154a5f6479f3ab8cf46cdebef2a.zip
fix some special cases for backcall.
Diffstat (limited to 'spec')
-rw-r--r--spec/inputs/backcall.moon13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon
index 407a5a7..48fa149 100644
--- a/spec/inputs/backcall.moon
+++ b/spec/inputs/backcall.moon
@@ -14,6 +14,19 @@ b = 1 + 2 + (4 |> tostring |> print(1) or 123)
14if x = 233 |> math.max 998 14if x = 233 |> math.max 998
15 print x 15 print x
16 16
17with b |> create? "new"
18 .value = 123
19 print \work!
20
21123 |> f?
22
23"abc" |> f1? |> f2?
24
25c = "abc" |> f1? |> f2?
26
27f = ->
28 arg |> x.y?\if
29
17998 |> func2 "abc", 233 |> func0 |> func1 30998 |> func2 "abc", 233 |> func0 |> func1
18998 |> func0("abc", 233) |> func1 |> func2 31998 |> func0("abc", 233) |> func1 |> func2
19 32