diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/hover/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
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?> + +t.z = any +]] +[[ +local t: Position { + x: number, + y: number, + z?: number, +} +]] |