diff options
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r-- | test/hover/init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 2ae6837f..4337c4a4 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1816,3 +1816,15 @@ local <?x?> = '1' .. '2' [[ local x: string = "12" ]] + +TEST [[ +local t = { + x = 1, + [1] = 'x', +} + +local <?x?> = t[#t] +]] +[[ +local x: string = "x" +]] |