diff options
Diffstat (limited to 'test')
-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, +} +]] |