summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-16 20:37:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-16 20:37:00 +0800
commit8a9e8d9cfd12d43496c2bf16f70874af550d4e7e (patch)
tree5dfdec3988e74a8b4eae33849870051a96420d94 /test/diagnostics
parentea1c5197c469779ba7cd18f1a8da5da9908f2149 (diff)
downloadlua-language-server-8a9e8d9cfd12d43496c2bf16f70874af550d4e7e.zip
type-check: `cast-local-type`
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
+]]