summaryrefslogtreecommitdiff
path: root/test-beta/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-10 12:02:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-10 12:02:43 +0800
commite1fac82828bedc20c123b0eb88f34223252db3b4 (patch)
treee4f4b3a9446019228a65d1d6ac985f285b849119 /test-beta/diagnostics/init.lua
parent585dac714a2f6f197035e40701201d4f2474f616 (diff)
downloadlua-language-server-e1fac82828bedc20c123b0eb88f34223252db3b4.zip
诊断允许定义为 doc.class 的全局变量
Diffstat (limited to 'test-beta/diagnostics/init.lua')
-rw-r--r--test-beta/diagnostics/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-beta/diagnostics/init.lua b/test-beta/diagnostics/init.lua
index a467276c..eb79b7c1 100644
--- a/test-beta/diagnostics/init.lua
+++ b/test-beta/diagnostics/init.lua
@@ -733,3 +733,8 @@ TEST [[
local f
f()
]]
+
+TEST [[
+---@class c
+c = {}
+]]