summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua4
-rw-r--r--test/type_inference/init.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index f52a9b20..b8d3d18a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -888,8 +888,8 @@ local v
---@type Bar
local v2
v2 = v -- TODO 这里应该给警告
-v2:<!method1!>()
-v2:method2()
+v2:method1()
+v2:<!method2!>()
]]
TEST [[
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 9eb469de..2616898d 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1238,14 +1238,14 @@ TEST '👍' [[
local <?x?>
]]
-TEST 'boolean' [[
+TEST 'integer' [[
---@type boolean
local x
<?x?> = 1
]]
-TEST 'Class' [[
+TEST 'integer' [[
---@class Class
local x