summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-16 11:27:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-16 11:27:17 +0800
commit8c464f8fa237d85d2c99c7b36d8a62d9bcecda81 (patch)
tree85c6d6bdcd9ab446cd924bad745da5c05bdec070 /test-beta
parent4e23000383857307e33ec255fe71e2e020413615 (diff)
downloadlua-language-server-8c464f8fa237d85d2c99c7b36d8a62d9bcecda81.zip
诊断检查 break 后的代码
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/diagnostics/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-beta/diagnostics/init.lua b/test-beta/diagnostics/init.lua
index 579a132b..8b4ba219 100644
--- a/test-beta/diagnostics/init.lua
+++ b/test-beta/diagnostics/init.lua
@@ -632,6 +632,14 @@ table.insert({}, 1, 2, <!3!>)
]]
TEST [[
+while true do
+ break
+ <!print()
+ print()!>
+end
+]]
+
+TEST [[
---@class <!Class!>
---@class <!Class!>
]]