From 0ba04868b6bed5c213cb0f7e3d732ce59bf930f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 1 Jul 2021 22:56:21 +0800 Subject: dig a hole --- test/type_inference/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 6aefd1f4..3ec1cf19 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -827,3 +827,14 @@ TEST 'fun():number, boolean' [[ ---@type fun():number, boolean local ]] + +TEST 'Class' [[ +---@class Class + +---@param callback fun(value: Class) +function work(callback) +end + +work(function () +end) +]] -- cgit v1.2.3