summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-24 16:10:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-24 16:10:35 +0800
commit574136216e1cbfe5836bc3136fdc66c250e7be07 (patch)
tree7b404ded5fc6b07efff73180490ce0f3d07c8c0f /test
parent3534367f05b37b0122441bf3b3ddaaaf707c9514 (diff)
downloadlua-language-server-574136216e1cbfe5836bc3136fdc66c250e7be07.zip
fix #1229
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index a837fc0f..e6bc86ef 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1675,3 +1675,23 @@ TEST [[
---@field [A] A
---@field [<!A!>] true
]]
+
+TEST [[
+---@diagnostic disable: unused-local
+
+---@type 'x'
+local t
+
+local n = t:upper()
+]]
+
+TEST [[
+---@diagnostic disable: unused-local
+
+---@alias A 'x'
+
+---@type A
+local t
+
+local n = t:upper()
+]]