summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-21 19:18:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-21 19:18:25 +0800
commite7aa360492f0cde296281c3b2518691fbfc761e4 (patch)
tree41c4e113fea9ca221e12a2f8fd3f0f09117f9299 /test
parent693226b24fb0888c12e89e6b413bf21522eed423 (diff)
downloadlua-language-server-e7aa360492f0cde296281c3b2518691fbfc761e4.zip
stash
Diffstat (limited to 'test')
-rw-r--r--test/full/projects.lua2
-rw-r--r--test/type_inference/init.lua8
2 files changed, 9 insertions, 1 deletions
diff --git a/test/full/projects.lua b/test/full/projects.lua
index 6e336df8..f59ad994 100644
--- a/test/full/projects.lua
+++ b/test/full/projects.lua
@@ -42,5 +42,5 @@ local function doProjects(pathname)
print('基准全量诊断用时:', passed)
end
-doProjects [[C:\SSSEditor\client\Output\Lua]]
+--doProjects [[C:\SSSEditor\client\Output\Lua]]
doProjects [[C:\W3-Server\script]]
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 7a968972..300a68ce 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -742,3 +742,11 @@ local <?test?> = Rct.new(Rct)
return test
]]
+
+TEST 'number' [[
+---@alias t table<number, string>
+---@type t
+local a = {}
+for <?x?>, y in pairs(a) do
+end
+]]