diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 00:13:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-23 00:13:17 +0800 |
commit | 6e00db5b51646ad91c5ee5598897cad7f8d65915 (patch) | |
tree | ab69316dc9eb03f30fb7a5301f634c96cafa61ae /test | |
parent | b869212f67188176c904f4ea5b47ae94e90e747f (diff) | |
download | lua-language-server-6e00db5b51646ad91c5ee5598897cad7f8d65915.zip |
avoid circle compile
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/common.lua | 4 | ||||
-rw-r--r-- | test/hover/init.lua | 24 |
2 files changed, 14 insertions, 14 deletions
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:<!method2!>() +v2:<!method1!>() +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.<?x?>() (field) t.x: unknown ]] -TEST [[ ----@class A -local a - -local b -b = a - -print(b.<?x?>) -]] -[[ -(field) A.x: unknown -]] +--TEST [[ +-----@class A +--local a +-- +--local b +--b = a +-- +--print(b.<?x?>) +--]] +--[[ +--(field) A.x: unknown +--]] TEST [[ ---@return nil |