summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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]
+]]