summaryrefslogtreecommitdiff
path: root/test/diagnostics/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-18 16:15:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-18 16:15:26 +0800
commit7b3bdcfb3f62695bb8ad237046285634a701a697 (patch)
tree0efe10bc304612b6280cb7b36b3950e1d3318187 /test/diagnostics/common.lua
parentf99a3cd8dea446852d8282319d620704eb0e6094 (diff)
downloadlua-language-server-7b3bdcfb3f62695bb8ad237046285634a701a697.zip
update
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r--test/diagnostics/common.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 32c496df..4edb9703 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1008,8 +1008,8 @@ local v
---@type Bar
local v2
<!v2!> = v
-v2:<!method1!>()
-v2:method2()
+v2:method1()
+v2:<!method2!>()
]]
TEST [[
@@ -1613,3 +1613,10 @@ local function foo(x) end
foo(f())
]]
+
+TEST [[
+---@type string|table
+local n
+
+print(n.x)
+]]