summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-17 15:12:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-17 15:12:49 +0800
commit5e12f19a1e813db2985579e9c6dcf040b1129853 (patch)
tree704d298c5670ab2aa76a74f6b7cc28b96584119a /test
parent5aa47d161d1c00ac019f7cf0e721f785f53f0a9b (diff)
downloadlua-language-server-5e12f19a1e813db2985579e9c6dcf040b1129853.zip
improve
Diffstat (limited to 'test')
-rw-r--r--test/references/common.lua18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/references/common.lua b/test/references/common.lua
index 2629d5cc..3669486b 100644
--- a/test/references/common.lua
+++ b/test/references/common.lua
@@ -226,9 +226,25 @@ a.<!xxx!> = 1
---@type A
local b
-b.xxx = 1
+b.xxx = 1 -- Dont search this
---@class C: A
local c
print(c.<?xxx?>)
]]
+
+TEST [[
+---@class A
+local <?a?>
+
+---@class B
+local b
+
+b.xx = 1 -- Dont search this
+
+---@type B
+local c
+
+---@type A
+c.<!xx!> = 1
+]]