summaryrefslogtreecommitdiff
path: root/server/test/crossfile/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/crossfile/hover.lua')
-rw-r--r--server/test/crossfile/hover.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua
index f2dcd443..6941edb8 100644
--- a/server/test/crossfile/hover.lua
+++ b/server/test/crossfile/hover.lua
@@ -220,3 +220,23 @@ global t: {
name = 't',
},
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = '',
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ --- abc
+ ---@param x number
+ function <?f?>(x) end
+ ]],
+ },
+ hover = {
+ label = [[function f(x: number)]],
+ name = 'f',
+ description = 'abc',
+ }
+}