summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-24 15:38:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-24 15:38:24 +0800
commit8164480e7dad67d62ac9a4346fa2f149addbc573 (patch)
tree1b235c5d72034a682b6b5574819be73f44b5d3b5 /test/type_inference
parent60d03b0fe64ed14c0452970bb026da28f1f38429 (diff)
downloadlua-language-server-8164480e7dad67d62ac9a4346fa2f149addbc573.zip
cleanup
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 5bbf6de9..602f97be 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -295,12 +295,6 @@ end
local _, _, _, <?b?>, _ = x(nil, true, 1, 'yy')
]]
--- TODO 暂不支持这些特殊情况,之后用其他语法定义
---TEST 'integer' [[
---for <?i?> in ipairs(t) do
---end
---]]
-
TEST 'any' [[
local <?x?> = next()
]]
@@ -651,9 +645,8 @@ TEST 'integer' [[
---@generic T: table, K, V
---@param t T
----@return fun(table: table<K, V>, index: K):K, V
+---@return fun(table: table<K, V>, index?: K):K, V
---@return T
----@return nil
local function pairs(t) end
---@type boolean[]