diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/inputs/cond.yue | 7 | ||||
-rw-r--r-- | spec/outputs/cond.lua | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/spec/inputs/cond.yue b/spec/inputs/cond.yue index 9981e93..638b5c3 100644 --- a/spec/inputs/cond.yue +++ b/spec/inputs/cond.yue | |||
@@ -219,6 +219,13 @@ do | |||
219 | :Thing = _M | 219 | :Thing = _M |
220 | :a, :b = _M | 220 | :a, :b = _M |
221 | 221 | ||
222 | do | ||
223 | v = if 1 and do | ||
224 | 0 ~= 1 | ||
225 | 1 | ||
226 | else | ||
227 | 2 | ||
228 | |||
222 | nil | 229 | nil |
223 | 230 | ||
224 | 231 | ||
diff --git a/spec/outputs/cond.lua b/spec/outputs/cond.lua index 7764439..1f6aa63 100644 --- a/spec/outputs/cond.lua +++ b/spec/outputs/cond.lua | |||
@@ -335,4 +335,14 @@ do | |||
335 | end | 335 | end |
336 | end | 336 | end |
337 | end | 337 | end |
338 | do | ||
339 | local v | ||
340 | if 1 and (function() | ||
341 | return 0 ~= 1 | ||
342 | end)() then | ||
343 | v = 1 | ||
344 | else | ||
345 | v = 2 | ||
346 | end | ||
347 | end | ||
338 | return nil | 348 | return nil |