summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-05 15:41:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-05 15:41:15 +0800
commita00de14e61b02e3b015fe33f8c01b748113bf4ce (patch)
treef9ea61699771833142bb44760a76ea458eebfd7d /test/type_inference
parentc0ee6e9d999918bc7599625feddbff6ba005c270 (diff)
downloadlua-language-server-a00de14e61b02e3b015fe33f8c01b748113bf4ce.zip
#1280 `doc.diagnostic` don't break docs
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index a934a85d..94ee5638 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3364,3 +3364,15 @@ local t
local <?x?> = t[1]
]]
+
+TEST 'integer' [[
+---@type integer
+---@diagnostic disable
+local <?t?>
+]]
+
+TEST 'A' [[
+---@class A
+---@diagnostic disable
+local <?t?>
+]]