summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-01 14:52:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-01 14:52:45 +0800
commitf050b38fd69bd1c90b99b536f89f8036c9f4fc3a (patch)
treef0564c91d20fbb9e26aad2b315df9aad4ff747e7 /test
parentae95f749532c2252c671d1b3cab73d7e18cf777c (diff)
downloadlua-language-server-f050b38fd69bd1c90b99b536f89f8036c9f4fc3a.zip
update search reference
Diffstat (limited to 'test')
-rw-r--r--test/references/common.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/references/common.lua b/test/references/common.lua
index c20b32ed..7f7e91a6 100644
--- a/test/references/common.lua
+++ b/test/references/common.lua
@@ -201,3 +201,18 @@ local b = { }
a.color = { 1, 1, 1 }
b.<~color~> = a.color
]]
+
+TEST [[
+---@alias <~A~> number
+
+---@type <!A!>
+]]
+
+TEST [[
+---@class A
+---@field <~x~> number
+
+---@type A
+local t
+print(t.<!x!>)
+]]