aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/with.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2024-09-26 22:11:13 +0800
committerLi Jin <dragon-fly@qq.com>2024-09-26 22:11:13 +0800
commit7575fe00aad91e0ba943e877ddcd838f76e095c0 (patch)
treecc1da50dddf61e77f33c026e38afe4ac2ad7d904 /spec/outputs/with.lua
parent461bf7c32408553125d71b23e04e21fed690c4f5 (diff)
downloadyuescript-0.25.2.tar.gz
yuescript-0.25.2.tar.bz2
yuescript-0.25.2.zip
Fixed a few issues.v0.25.2
* Fixed a `with` block with return statement issue. * Fixed a switch-when indentation issue. * Added error reporting for `return` statement not appearing in last block line.
Diffstat (limited to 'spec/outputs/with.lua')
-rw-r--r--spec/outputs/with.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua
index b2a1c3b..d880d1e 100644
--- a/spec/outputs/with.lua
+++ b/spec/outputs/with.lua
@@ -121,7 +121,9 @@ do
121 local _ 121 local _
122 _ = function() 122 _ = function()
123 local _with_0 = hi 123 local _with_0 = hi
124 return _with_0.a, _with_0.b 124 do
125 return _with_0.a, _with_0.b
126 end
125 end 127 end
126end 128end
127do 129do