summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-24 15:37:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-24 15:37:33 +0800
commit60d03b0fe64ed14c0452970bb026da28f1f38429 (patch)
tree41bcffc1317931379ef0951882200f129765916a /test/type_inference/init.lua
parent21f856de7216b8b66953a61ce229e156368ec70b (diff)
downloadlua-language-server-60d03b0fe64ed14c0452970bb026da28f1f38429.zip
update
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 2f01f67a..5bbf6de9 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -566,9 +566,8 @@ TEST 'boolean' [[
---@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
local f = pairs(t)
@@ -585,9 +584,8 @@ TEST 'string' [[
---@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 table<string, boolean>