summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-23 00:13:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-23 00:13:17 +0800
commit6e00db5b51646ad91c5ee5598897cad7f8d65915 (patch)
treeab69316dc9eb03f30fb7a5301f634c96cafa61ae /test
parentb869212f67188176c904f4ea5b47ae94e90e747f (diff)
downloadlua-language-server-6e00db5b51646ad91c5ee5598897cad7f8d65915.zip
avoid circle compile
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua4
-rw-r--r--test/hover/init.lua24
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