diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-11 16:52:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-11 16:52:51 +0800 |
commit | 3f2c19d1990d858989d9c908964b93f99789f0e4 (patch) | |
tree | db5f805e32d3e5a0cae84544a09bf8494a864482 /test-beta/diagnostics | |
parent | 16ed5b65e4b52933942b947fb9a5ddfd5513c3f1 (diff) | |
download | lua-language-server-3f2c19d1990d858989d9c908964b93f99789f0e4.zip |
修正泛型的一个诊断问题
Diffstat (limited to 'test-beta/diagnostics')
-rw-r--r-- | test-beta/diagnostics/init.lua | 10 |
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 +]] |