summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-05 21:32:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-05 21:32:20 +0800
commitee1fd6ecca105f554ac8f7888e4f951c47f9e967 (patch)
treedc2c0330a0a4e46ca0e347102ba59f7e427fe132 /test/type_inference
parent9e01f8d8eb7a408b45fce7a6231c690fede87da0 (diff)
downloadlua-language-server-ee1fd6ecca105f554ac8f7888e4f951c47f9e967.zip
fix #625
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index a3a06bfd..a20a96e9 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -901,3 +901,13 @@ local t
local <?v?> = t[1]
]]
+
+TEST 'string' [[
+---@type string[][]
+local v = {}
+
+for _, a in ipairs(v) do
+ for i, <?b?> in ipairs(a) do
+ end
+end
+]]