summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-16 17:12:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-16 17:12:03 +0800
commitb2f02681993eb0f38468767255d8a7ba71fadc72 (patch)
treefb04efa526b10e66e099eccb6cd0ef7d0aea9499 /test/diagnostics/init.lua
parentb02cc8207450ffdd9973f689b2e32a5facd68996 (diff)
downloadlua-language-server-b2f02681993eb0f38468767255d8a7ba71fadc72.zip
improve
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r--test/diagnostics/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index 0f5880ae..b087f3b0 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -963,9 +963,9 @@ function mt2:method2() end
local v
---@type Bar
local v2
-v2 = v
-v2:method1()
-v2:method2() -- 这个感觉实际应该报错更合适
+v2 = v -- TODO 这里应该给警告
+v2:<!method1!>()
+v2:method2()
]]
TEST [[