diff options
author | Li Jin <dragon-fly@qq.com> | 2023-10-06 15:25:58 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-10-06 15:25:58 +0800 |
commit | 6d88ca63050623db73e3cfe614e9a90657f5e875 (patch) | |
tree | aecb57b07fbd653fa4eb54f31946faf1c578380e /spec | |
parent | bf84f1c22fba949017f0b8be82d3ac562ab5316e (diff) | |
download | yuescript-6d88ca63050623db73e3cfe614e9a90657f5e875.tar.gz yuescript-6d88ca63050623db73e3cfe614e9a90657f5e875.tar.bz2 yuescript-6d88ca63050623db73e3cfe614e9a90657f5e875.zip |
fixing issue #150.v0.19.5
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/pipe.yue | 6 | ||||
-rw-r--r-- | spec/outputs/pipe.lua | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/inputs/pipe.yue b/spec/inputs/pipe.yue index 7e33422..02f87a3 100644 --- a/spec/inputs/pipe.yue +++ b/spec/inputs/pipe.yue | |||
@@ -71,6 +71,12 @@ do | |||
71 | |> f2 2 | 71 | |> f2 2 |
72 | |> f3 3 | 72 | |> f3 3 |
73 | |> f4 4 | 73 | |> f4 4 |
74 | |||
75 | const x = y | ||
76 | |> z | ||
77 | |||
78 | close a = b | ||
79 | |> c | ||
74 | 80 | ||
75 | x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y | 81 | x = 123 |> a |> b or 456 |> c |> d or a.if\then("abc") or a?.b\c?(123) or x\y |
76 | 82 | ||
diff --git a/spec/outputs/pipe.lua b/spec/outputs/pipe.lua index 345f8b0..124231a 100644 --- a/spec/outputs/pipe.lua +++ b/spec/outputs/pipe.lua | |||
@@ -103,6 +103,8 @@ do | |||
103 | _2, _3, _4 = 1, 2, f(3) | 103 | _2, _3, _4 = 1, 2, f(3) |
104 | local _5 | 104 | local _5 |
105 | _5 = f4(f3(f2(f1(v, 1), 2), 3), 4) | 105 | _5 = f4(f3(f2(f1(v, 1), 2), 3), 4) |
106 | local x <const> = z(y) | ||
107 | local a <close> = c(b) | ||
106 | end | 108 | end |
107 | local x = b(a(123)) or d(c(456)) or (function() | 109 | local x = b(a(123)) or d(c(456)) or (function() |
108 | local _call_0 = a["if"] | 110 | local _call_0 = a["if"] |