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.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()
+]]