From 05ef9bb1ffefbc717f3fb4738f3683b3cb09a82e Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 17 Dec 2021 17:33:38 +0800 Subject: eliminate some ambiguous syntax. --- spec/outputs/cond.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'spec/outputs') diff --git a/spec/outputs/cond.lua b/spec/outputs/cond.lua index 5efa237..8f69e97 100644 --- a/spec/outputs/cond.lua +++ b/spec/outputs/cond.lua @@ -269,4 +269,34 @@ if 1 then else m = 6 end +do + a({ + b = b + }) + if a then + return { + b = b + } + else + if c then + return { + d = e + } + else + return { + f = 123 + } + end + end +end +do + c({ + d = e + }) + if a then + b = tb.b + elseif c then + local e = tb.d + end +end return nil -- cgit v1.2.3-55-g6feb