From 9f88a3f1d9535154a5f6479f3ab8cf46cdebef2a Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 28 Jan 2020 03:06:59 +0800 Subject: fix some special cases for backcall. --- spec/inputs/backcall.moon | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'spec') 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) if x = 233 |> math.max 998 print x +with b |> create? "new" + .value = 123 + print \work! + +123 |> f? + +"abc" |> f1? |> f2? + +c = "abc" |> f1? |> f2? + +f = -> + arg |> x.y?\if + 998 |> func2 "abc", 233 |> func0 |> func1 998 |> func0("abc", 233) |> func1 |> func2 -- cgit v1.2.3-55-g6feb