summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 428d8a45..d9dfb0b9 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1601,3 +1601,10 @@ end
f1(f2())
]]
+
+TEST [[
+---@diagnostic disable: unused-local
+local x = 0
+
+<!x!> = true
+]]