summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-28 10:51:59 +0800
committersumneko <sumneko@hotmail.com>2019-04-28 10:51:59 +0800
commitfdbc780ec38812ad4f63dc1a5cbda2c0d07f7003 (patch)
treeb7e8528299ad9e0c6d8d228bc11e22bf5493dd6a /server/test
parentec3eb3c504e2c13bec721fbe521ec2ac43ce7820 (diff)
downloadlua-language-server-fdbc780ec38812ad4f63dc1a5cbda2c0d07f7003.zip
实现emmy.return
Diffstat (limited to 'server/test')
-rw-r--r--server/test/hover/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index 639789e0..4b4d0c25 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -597,3 +597,14 @@ end
[[
local v<value>: *Class {}
]]
+
+TEST [[
+---@return A|B
+---@return C
+local function <?f?>()
+end
+]]
+[[
+function f()
+ -> A|B, C
+]]