summaryrefslogtreecommitdiff
path: root/test/references/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-17 14:30:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-17 14:30:35 +0800
commit3a5d363650e86895c59c68d0154e651d2876f006 (patch)
tree7944613a23860accd5a2271cabddf2bc38e9ef48 /test/references/common.lua
parent3f730ff7d9db1e8e51133a2ba19ee951714f5d8d (diff)
downloadlua-language-server-3a5d363650e86895c59c68d0154e651d2876f006.zip
cleanup
Diffstat (limited to 'test/references/common.lua')
-rw-r--r--test/references/common.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/references/common.lua b/test/references/common.lua
index e2dbdf65..2629d5cc 100644
--- a/test/references/common.lua
+++ b/test/references/common.lua
@@ -216,3 +216,19 @@ TEST [[
---@type A
local <?t?>
]]
+
+TEST [[
+---@class A
+local a
+
+a.<!xxx!> = 1
+
+---@type A
+local b
+
+b.xxx = 1
+
+---@class C: A
+local c
+print(c.<?xxx?>)
+]]