From 9be846d86c494e08d376aa465e8269796176765a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 6 Nov 2022 22:58:11 +0800 Subject: type check: check the fields in table resolve #1434 --- test/definition/luadoc.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/definition') diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index d8da938e..d8b3ef60 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -642,7 +642,7 @@ end ]] TEST [[ ----@class TT: { } +---@class TT: { : V } ---@type TT local t @@ -653,7 +653,7 @@ print(t.) ]] TEST [[ ----@alias TT { } +---@alias TT { : V } ---@type TT local t @@ -823,7 +823,7 @@ z. ]] TEST [[ ----@type { , y: number } +---@type { : number, y: number } local t print(t.) @@ -846,14 +846,14 @@ local !> = t[1] TEST [[ ---@class A ----@field ? +---@field []? local t print(t.) ]] TEST [[ ----@type { } +---@type { []?: boolean } local t print(t.) -- cgit v1.2.3