summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-24 21:20:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-24 21:20:48 +0800
commit35ecea910789fbd470d0c6d68b75409ac3c3e21e (patch)
tree391057909f25ff2948de11877aa3c6de2de2f6be /test/crossfile
parentf1701259a6c5ccf65d98020938737625277fa215 (diff)
downloadlua-language-server-35ecea910789fbd470d0c6d68b75409ac3c3e21e.zip
fix #817
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 35528446..dcd971de 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1051,3 +1051,26 @@ end
local x: any
```]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+---@class A
+---@field x number
+G = {}
+]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+<?G?>
+]],
+ },
+ hover = [[
+```lua
+global G: A {
+ x: number,
+}
+```]]
+}