summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-16 22:45:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-16 22:45:26 +0800
commitcbb4bea9cabfa3073b39e067ea2114946c1d1690 (patch)
tree96a0c3a41581fe2bb7440d8074354c2ef925f971 /test
parent814d7dfccb1ecfbd887af40f4df951fbdecb12ac (diff)
downloadlua-language-server-cbb4bea9cabfa3073b39e067ea2114946c1d1690.zip
fix runner for `doc.type.array`
Diffstat (limited to 'test')
-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 c402cb8d..522c48f2 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2657,3 +2657,13 @@ end
local <?x?> = f()
]]
+
+TEST 'integer[]' [[
+---@type integer[]
+local x
+if not x then
+ return
+end
+
+print(<?x?>)
+]]