diff options
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 | ||