summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/init.lua11
1 files changed, 11 insertions, 0 deletions
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
+]]