From 923fcd8fe3e5ce1f140446482394eb2eb7261d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 4 Dec 2020 12:48:03 +0800 Subject: fix #274 --- test/hover/init.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index ed16595a..cc2fcea8 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1459,3 +1459,20 @@ local v: Object { a: string, } ]] + +TEST [[ +---@class Object +---@field a string + +---@type Object[] +local t + +local = t[i] + +print(v.a) +]] +[[ +local v: Object { + a: string, +} +]] -- cgit v1.2.3