summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-18 14:49:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-18 14:49:26 +0800
commitfd5fe4235939967f4b22b397c4fdff3b9b1f666a (patch)
treea94b88e1d49bedd40b3ab99958a5d314cd683812 /test/diagnostics/init.lua
parentbd966b33388e13133d904833fecbf1542441eaa2 (diff)
downloadlua-language-server-fd5fe4235939967f4b22b397c4fdff3b9b1f666a.zip
fix
Diffstat (limited to 'test/diagnostics/init.lua')
-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
+]]