summaryrefslogtreecommitdiff
path: root/test/references/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-25 15:45:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-25 15:45:35 +0800
commitc586a11e9ae9b3f001c39d7f2f6762b0cf7af671 (patch)
tree396989d94b0c14b749b1393608e9d3b28ce182b3 /test/references/common.lua
parent50688a8001325308c30a8669783f1d0e379b463b (diff)
downloadlua-language-server-c586a11e9ae9b3f001c39d7f2f6762b0cf7af671.zip
fix #1155
Diffstat (limited to 'test/references/common.lua')
-rw-r--r--test/references/common.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/references/common.lua b/test/references/common.lua
index 5217200d..47dfb099 100644
--- a/test/references/common.lua
+++ b/test/references/common.lua
@@ -184,3 +184,13 @@ local <~t~>
--b.<~x~> = 1
--c.<!x!> = 1
--]]
+
+TEST [[
+---@class a
+local a = { }
+---@class b
+local b = { }
+
+a.color = { 1, 1, 1 }
+b.<~color~> = a.color
+]]