diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-24 21:20:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-24 21:20:48 +0800 |
commit | 35ecea910789fbd470d0c6d68b75409ac3c3e21e (patch) | |
tree | 391057909f25ff2948de11877aa3c6de2de2f6be /test/crossfile | |
parent | f1701259a6c5ccf65d98020938737625277fa215 (diff) | |
download | lua-language-server-35ecea910789fbd470d0c6d68b75409ac3c3e21e.zip |
fix #817
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/hover.lua | 23 |
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, +} +```]] +} |