summaryrefslogtreecommitdiff
path: root/test-beta/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-11 16:52:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-11 16:52:51 +0800
commit3f2c19d1990d858989d9c908964b93f99789f0e4 (patch)
treedb5f805e32d3e5a0cae84544a09bf8494a864482 /test-beta/diagnostics/init.lua
parent16ed5b65e4b52933942b947fb9a5ddfd5513c3f1 (diff)
downloadlua-language-server-3f2c19d1990d858989d9c908964b93f99789f0e4.zip
修正泛型的一个诊断问题
Diffstat (limited to 'test-beta/diagnostics/init.lua')
-rw-r--r--test-beta/diagnostics/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-beta/diagnostics/init.lua b/test-beta/diagnostics/init.lua
index eb79b7c1..4c21da69 100644
--- a/test-beta/diagnostics/init.lua
+++ b/test-beta/diagnostics/init.lua
@@ -738,3 +738,13 @@ TEST [[
---@class c
c = {}
]]
+
+TEST [[
+---@generic T: any
+---@param v T
+---@param message any
+---@return T
+function assert(v, message)
+ return v, message
+end
+]]