From 3f2c19d1990d858989d9c908964b93f99789f0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 11 Nov 2020 16:52:51 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B3=9B=E5=9E=8B=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E8=AF=8A=E6=96=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/diagnostics/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test-beta/diagnostics') 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 +]] -- cgit v1.2.3