summaryrefslogtreecommitdiff
path: root/test/diagnostics/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r--test/diagnostics/common.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 6aa1dd6a..56ad0d59 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1387,3 +1387,11 @@ local value
value = '1'
value = value:gsub()
]]
+
+TEST [[
+T = {}
+---@deprecated # comment
+T.x = 1
+
+print(<!T.x!>)
+]]