From f5fcab05b5a30373d1b35689d456090c8299c4c2 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, 11 Aug 2023 18:12:04 +0800 Subject: support `---@type` and `--[[@as]]` for return resolve #2144 --- test/diagnostics/missing-fields.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/diagnostics') diff --git a/test/diagnostics/missing-fields.lua b/test/diagnostics/missing-fields.lua index d8731775..f5fdd35c 100644 --- a/test/diagnostics/missing-fields.lua +++ b/test/diagnostics/missing-fields.lua @@ -197,3 +197,11 @@ local b = { c = 3, } ]] + +TEST [[ +---@class A +---@field x integer + +---@type A +return +]] -- cgit v1.2.3