summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-14 16:49:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-14 16:49:48 +0800
commit4ddea4e9386ab0b0ec9583e6c468b52a0d7a8958 (patch)
treeb58dc78883973aeea2e4ee5d113c441454497582 /test
parent113ddccfec2264eb0c500a396bb4bb7ec6729373 (diff)
downloadlua-language-server-4ddea4e9386ab0b0ec9583e6c468b52a0d7a8958.zip
fix infer of infer of `---@type {}[]`
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index b5d4db16..a3a06bfd 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -894,3 +894,10 @@ TEST 'string[][]' [[
---@type string[][]
local <?t?>
]]
+
+TEST 'table' [[
+---@type {}[]
+local t
+
+local <?v?> = t[1]
+]]