diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-15 17:44:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-15 17:44:53 +0800 |
commit | 43fdd200c89cc4356e50ccf4bd4f4a94bc1ae701 (patch) | |
tree | 29c7a02ceb25ffb2ce4c0fe74fc4f4b32d9748d1 /test/type_inference | |
parent | 91c8da46833320274f874250d21b71da05cf9689 (diff) | |
download | lua-language-server-43fdd200c89cc4356e50ccf4bd4f4a94bc1ae701.zip |
update
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index a71a5b84..d6f34ef0 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -525,6 +525,8 @@ local <?r?> = f() ]] TEST 'string' [[ +---@class string + ---@generic K, V ---@return fun(arg: table<K, V>):K, V local function f() end @@ -538,6 +540,8 @@ local <?k?>, v = f2(t) ]] TEST 'string' [[ +---@class string + ---@generic T: table, K, V ---@param t T ---@return fun(table: table<K, V>, index: K):K, V @@ -555,6 +559,8 @@ end ]] TEST 'boolean' [[ +---@class boolean + ---@generic T: table, K, V ---@param t T ---@return fun(table: table<K, V>, index: K):K, V @@ -572,6 +578,8 @@ end ]] TEST 'string' [[ +---@class string + ---@generic T: table, K, V ---@param t T ---@return fun(table: table<K, V>, index: K):K, V @@ -587,6 +595,8 @@ end ]] TEST 'boolean' [[ +---@class boolean + ---@generic T: table, K, V ---@param t T ---@return fun(table: table<K, V>, index: K):K, V @@ -602,6 +612,8 @@ end ]] TEST 'boolean' [[ +---@class boolean + ---@generic T: table, V ---@param t T ---@return fun(table: V[], i?: integer):integer, V @@ -617,6 +629,8 @@ end ]] TEST 'boolean' [[ +---@class boolean + ---@generic T: table, K, V ---@param t T ---@return fun(table: table<K, V>, index: K):K, V @@ -632,6 +646,8 @@ end ]] TEST 'integer' [[ +---@class integer + ---@generic T: table, K, V ---@param t T ---@return fun(table: table<K, V>, index: K):K, V |