summaryrefslogtreecommitdiff
path: root/test/diagnostics/common.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-16 21:50:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-16 21:50:29 +0800
commitfa518d4f9522b38aca9478ac494e9523cca475f3 (patch)
treeb82261ecb612e15c9fa9a8381839898dbab3149a /test/diagnostics/common.lua
parentcd6b80d6126a785c4407e118c13388db537d6bf3 (diff)
downloadlua-language-server-fa518d4f9522b38aca9478ac494e9523cca475f3.zip
fix #1057
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!>)
+]]