diff options
author | Li Jin <dragon-fly@qq.com> | 2020-01-28 03:06:59 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-01-28 03:06:59 +0800 |
commit | 9f88a3f1d9535154a5f6479f3ab8cf46cdebef2a (patch) | |
tree | 13bc2e82997ea869023f533afc45b13012c8b6c7 /spec | |
parent | 7291098ca8f65658eb4f6b502e8b94071474b701 (diff) | |
download | yuescript-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.moon | 13 |
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) | |||
14 | if x = 233 |> math.max 998 | 14 | if x = 233 |> math.max 998 |
15 | print x | 15 | print x |
16 | 16 | ||
17 | with b |> create? "new" | ||
18 | .value = 123 | ||
19 | print \work! | ||
20 | |||
21 | 123 |> f? | ||
22 | |||
23 | "abc" |> f1? |> f2? | ||
24 | |||
25 | c = "abc" |> f1? |> f2? | ||
26 | |||
27 | f = -> | ||
28 | arg |> x.y?\if | ||
29 | |||
17 | 998 |> func2 "abc", 233 |> func0 |> func1 | 30 | 998 |> func2 "abc", 233 |> func0 |> func1 |
18 | 998 |> func0("abc", 233) |> func1 |> func2 | 31 | 998 |> func0("abc", 233) |> func1 |> func2 |
19 | 32 | ||