diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-24 15:37:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-24 15:37:33 +0800 |
commit | 60d03b0fe64ed14c0452970bb026da28f1f38429 (patch) | |
tree | 41bcffc1317931379ef0951882200f129765916a /test/type_inference/init.lua | |
parent | 21f856de7216b8b66953a61ce229e156368ec70b (diff) | |
download | lua-language-server-60d03b0fe64ed14c0452970bb026da28f1f38429.zip |
update
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 6 |
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> |