From c848377b107594759492c6ba6566705c9821df32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 25 Oct 2020 18:21:40 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=8A=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/rename/init.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'test-beta/rename/init.lua') 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 +]] -- cgit v1.2.3