diff options
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, +} +```]] +} |