diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-25 23:47:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-25 23:47:55 +0800 |
commit | 4529b3118d10a82ba2e0cfa201bc380067c18212 (patch) | |
tree | b35a0873230851d16c74678c4ad2d10d60f9cae3 /test | |
parent | 24e213e8620508920d69406164c5a5ea30a97abb (diff) | |
download | lua-language-server-4529b3118d10a82ba2e0cfa201bc380067c18212.zip |
fix #1370
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/hover.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index d1148309..e8a718d4 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -1525,3 +1525,32 @@ TEST { } ```]] } + +TEST { + { + path = 'a.lua', + content = [[ + ---@enum <?A?> + local t = + { + x = 1, + y = 2, + z = 3, + } + ]] + }, + hover = [[ +```lua +(enum) A +``` + +--- + +```lua +{ + x: integer = 1, + y: integer = 2, + z: integer = 3, +} +```]] +} |