summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-28 14:08:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-28 14:08:42 +0800
commit30ecf0d4475cf1e2b92f316d38311bab2d2095ab (patch)
tree2fa9b0924bb4d0c591fbd3ba80df79cc7cabef96 /test-beta
parent04264ad28a5cf727b96aa599150e8fe016df07c0 (diff)
downloadlua-language-server-30ecf0d4475cf1e2b92f316d38311bab2d2095ab.zip
doc.overload
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/definition/luadoc.lua10
-rw-r--r--test-beta/hover/init.lua11
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'}