From 7575fe00aad91e0ba943e877ddcd838f76e095c0 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 26 Sep 2024 22:11:13 +0800 Subject: Fixed a few issues. * 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. --- spec/outputs/with.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spec/outputs/with.lua') 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 local _ _ = function() local _with_0 = hi - return _with_0.a, _with_0.b + do + return _with_0.a, _with_0.b + end end end do -- cgit v1.2.3-55-g6feb