summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-27 14:12:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-27 14:12:15 +0800
commit6269a0c2d108e288bb5c637d86cb0cd62396209b (patch)
tree872d69974852daa49c448ab4e6b5c0ef7f2d4fc4 /test-beta
parent03e3cd15f9673e13537eee9d6b71bb45c22318eb (diff)
downloadlua-language-server-6269a0c2d108e288bb5c637d86cb0cd62396209b.zip
过基础的 hover
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 645b9131..fa1edfa3 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1159,8 +1159,7 @@ local t = {f = f}
t:<?f?>()
]]
[[
-function f(b: any)
- -> any
+function (a: any, b: any)
]]
TEST [[
@@ -1169,9 +1168,7 @@ local function f(<?names?>)
end
]]
[[
-local names: {
- [*integer]: string,
-}
+local names: string[]
]]
TEST [[
@@ -1198,10 +1195,10 @@ end
local <?x?> = f()
]]
[[
-local x: any
+local x: integer
]]
-
+do return end
TEST [[
---@param x number {optional = 'after'}
---@param y boolean {optional = 'self'}