From b2c9a64409fdc8ba03410155424d36d61e0fdb93 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, 2 Jul 2021 17:45:24 +0800 Subject: resove #524 --- test/hover/init.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') diff --git a/test/hover/init.lua b/test/hover/init.lua index ff33944b..d9492fd1 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1584,3 +1584,20 @@ local f [[ local f: any ]] + +TEST [[ +---@class Position +---@field x number +---@field y number +---@field z? number +local + +t.z = any +]] +[[ +local t: Position { + x: number, + y: number, + z?: number, +} +]] -- cgit v1.2.3