From f7399c6206378b76c87a7386707cf8e24d5a98ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 20 Jun 2022 17:43:58 +0800 Subject: `cast-field-type` --- test/diagnostics/type-check.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/diagnostics/type-check.lua b/test/diagnostics/type-check.lua index c59d73ed..f882d9c7 100644 --- a/test/diagnostics/type-check.lua +++ b/test/diagnostics/type-check.lua @@ -177,10 +177,11 @@ local m = {} m.ints = {} ]] -do return end TEST [[ ---@class A ---@field x integer + +---@type A local t = true @@ -189,6 +190,8 @@ local t TEST [[ ---@class A ---@field x integer + +---@type A local t ---@type boolean @@ -200,9 +203,9 @@ local y TEST [[ ---@class A ---@field x integer -local t -t = { +---@type A +local t = { = true } ]] -- cgit v1.2.3