summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-26 17:12:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-26 17:12:27 +0800
commit40e0d3595961913aff0405369ddc9cbec2f743d1 (patch)
treeb8f10f6cbe5b9453745545424cca94a18ada6b0c /test/hover/init.lua
parentc7184a917f20ce386e4c3ac7cbfa3c32d7180358 (diff)
downloadlua-language-server-40e0d3595961913aff0405369ddc9cbec2f743d1.zip
fix #753
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 0a05e1cc..36fbd6d2 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1714,3 +1714,12 @@ local t: A<string, number> {
y: number,
}
]]
+
+TEST [[
+---@return nil
+local function <?f?>() end
+]]
+[[
+function f()
+ -> nil
+]]