diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-28 14:08:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-28 14:08:42 +0800 |
commit | 30ecf0d4475cf1e2b92f316d38311bab2d2095ab (patch) | |
tree | 2fa9b0924bb4d0c591fbd3ba80df79cc7cabef96 /test-beta | |
parent | 04264ad28a5cf727b96aa599150e8fe016df07c0 (diff) | |
download | lua-language-server-30ecf0d4475cf1e2b92f316d38311bab2d2095ab.zip |
doc.overload
Diffstat (limited to 'test-beta')
-rw-r--r-- | test-beta/definition/luadoc.lua | 10 | ||||
-rw-r--r-- | test-beta/hover/init.lua | 11 |
2 files changed, 10 insertions, 11 deletions
diff --git a/test-beta/definition/luadoc.lua b/test-beta/definition/luadoc.lua index d91c3dfe..a0881334 100644 --- a/test-beta/definition/luadoc.lua +++ b/test-beta/definition/luadoc.lua @@ -91,6 +91,16 @@ TEST [[ function t(<?<!f!>?>) end ]] +TEST [[ +---@overload <!fun(y: boolean)!> +---@param x number +---@param y boolean +---@param z string +function <!f!>(x, y, z) end + +print(<?f?>) +]] + -- TODO do return end TEST [[ diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 471ad2ce..6efbef55 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1198,17 +1198,6 @@ 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'} |