diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 19:16:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 19:16:32 +0800 |
commit | 1e6b168fa6d7a4922205cd19519e01f25898017e (patch) | |
tree | 4d0ee467e60b2a8d83f21b2ed5e55670d208e3fa /test/hover/init.lua | |
parent | 9e8ae91901c096be13e6c7ef0cf865b0be7d0538 (diff) | |
download | lua-language-server-1e6b168fa6d7a4922205cd19519e01f25898017e.zip |
fix
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r-- | test/hover/init.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 4337c4a4..021746be 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1828,3 +1828,24 @@ local <?x?> = t[#t] [[ local x: string = "x" ]] + +TEST [[ +local x = { + a = 1, + b = 2, + [1] = 10, +} + +local y = { + _ = x.a, + _ = x.b, + [1] = <?x?>, +} +]] +[[ +local x: { + a: integer = 1, + b: integer = 2, + [1]: integer = 10, +} +]] |