diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-27 14:21:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-27 14:21:44 +0800 |
commit | d3acd3d9c4abe2349a6cd818415dabfdce835619 (patch) | |
tree | 1f9bfe7e1cabf3b398c61c0df325730e347dc687 /test-beta | |
parent | 6269a0c2d108e288bb5c637d86cb0cd62396209b (diff) | |
download | lua-language-server-d3acd3d9c4abe2349a6cd818415dabfdce835619.zip |
doc.type.fun 找一个合理的名字
Diffstat (limited to 'test-beta')
-rw-r--r-- | test-beta/hover/init.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index fa1edfa3..471ad2ce 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1130,7 +1130,7 @@ TEST [[ local <?f?> ]] [[ -function (x: number, y: number) +function f(x: number, y: number) -> boolean ]] @@ -1159,7 +1159,7 @@ local t = {f = f} t:<?f?>() ]] [[ -function (a: any, b: any) +function f(a: any, b: any) ]] TEST [[ @@ -1198,6 +1198,17 @@ local <?x?> = f() local x: integer ]] +TEST [[ +---@overload fun(y: boolean) +---@param x number +---@param y boolean +---@param z string +function <?f?>(x, y, z) end +]] +[=[ +function f(x: number, y: boolean, z: string) +]=] + do return end TEST [[ ---@param x number {optional = 'after'} |