diff options
author | Li Jin <dragon-fly@qq.com> | 2022-10-21 10:06:31 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-10-21 10:06:31 +0800 |
commit | 3dd607c8887d2fe0186668aabca31bb84a41e2da (patch) | |
tree | 49c406e9b48d794f7004b0ddf1945b2c7014bc3a /spec/outputs | |
parent | 6b6e98d062c7ec5f11be79ed5164aa59047dab30 (diff) | |
download | yuescript-3dd607c8887d2fe0186668aabca31bb84a41e2da.tar.gz yuescript-3dd607c8887d2fe0186668aabca31bb84a41e2da.tar.bz2 yuescript-3dd607c8887d2fe0186668aabca31bb84a41e2da.zip |
fix issue #111.
Diffstat (limited to 'spec/outputs')
-rw-r--r-- | spec/outputs/cond.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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 |