summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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!>)
+]]