From 6e00db5b51646ad91c5ee5598897cad7f8d65915 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, 23 Apr 2022 00:13:17 +0800 Subject: avoid circle compile --- test/diagnostics/common.lua | 4 ++-- test/hover/init.lua | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'test') diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index b8d0bcd8..dc784f28 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -930,8 +930,8 @@ local v ---@type Bar local v2 v2 = v -- TODO 这里应该给警告 -v2:method1() -v2:() +v2:() +v2:method2() ]] TEST [[ diff --git a/test/hover/init.lua b/test/hover/init.lua index 79af0154..5d3cd404 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1733,18 +1733,18 @@ t.() (field) t.x: unknown ]] -TEST [[ ----@class A -local a - -local b -b = a - -print(b.) -]] -[[ -(field) A.x: unknown -]] +--TEST [[ +-----@class A +--local a +-- +--local b +--b = a +-- +--print(b.) +--]] +--[[ +--(field) A.x: unknown +--]] TEST [[ ---@return nil -- cgit v1.2.3