diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-25 18:21:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-25 18:21:40 +0800 |
commit | c848377b107594759492c6ba6566705c9821df32 (patch) | |
tree | 1adec8c9a1d1638bacd23d0658c1c62d6188b72c /test-beta/rename/init.lua | |
parent | 0e12a5a4ad223393a76827ffdd39d27ca3db4bd9 (diff) | |
download | lua-language-server-c848377b107594759492c6ba6566705c9821df32.zip |
更新诊断
Diffstat (limited to 'test-beta/rename/init.lua')
-rw-r--r-- | test-beta/rename/init.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test-beta/rename/init.lua b/test-beta/rename/init.lua index a1595d9a..5ca0ca15 100644 --- a/test-beta/rename/init.lua +++ b/test-beta/rename/init.lua @@ -163,3 +163,43 @@ a() function a:b() end a:b() ]] + +-- TODO +do return end +TEST ('class1', 'class2') [[ +---@class1 + +---@type class1 + +---@param x class1 +]] [[ +---@class2 + +---@type class2 + +---@param x class2 +]] + +TEST ('alias1', 'alias2') [[ +---@alias alias1 class + +---@type alias1 + +---@param x alias1 +]] [[ +---@alias alias2 class + +---@type alias2 + +---@param x alias2 +]] + +TEST ('arg1', 'arg2') [[ +---@param arg1 number +function f(arg1) +end +]] [[ +---@param arg2 number +function f(arg2) +end +]] |