From 7b3bdcfb3f62695bb8ad237046285634a701a697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 18 Jun 2022 16:15:26 +0800 Subject: update --- test/diagnostics/common.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test/diagnostics/common.lua') diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 32c496df..4edb9703 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1008,8 +1008,8 @@ local v ---@type Bar local v2 = v -v2:() -v2:method2() +v2:method1() +v2:() ]] TEST [[ @@ -1613,3 +1613,10 @@ local function foo(x) end foo(f()) ]] + +TEST [[ +---@type string|table +local n + +print(n.x) +]] -- cgit v1.2.3