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.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index d9dfb0b9..d7ec4b63 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1608,3 +1608,12 @@ local x = 0
<!x!> = true
]]
+
+TEST [[
+---@diagnostic disable: unused-local
+
+---@type integer
+local x
+
+<!x!> = true
+]]