From fd5fe4235939967f4b22b397c4fdff3b9b1f666a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 18 Jun 2021 14:49:26 +0800 Subject: fix --- test/diagnostics/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/diagnostics') diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 344c554f..54951b33 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -1116,3 +1116,14 @@ end return mt ]] + +TEST [[ +local function each() + return function () + end +end + +for x in each() do + print(x) +end +]] -- cgit v1.2.3