From ddadd638917035ee4169da8942b6e4d4eb59cb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 19 Jul 2022 10:50:55 +0800 Subject: fix #1345 --- test/type_inference/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/type_inference') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index e4baf4a4..43fb3c62 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3726,3 +3726,14 @@ local m = {} print() ]] + +TEST 'A' [[ +---@class A +---@overload fun():A +local m = {} + +---@return A +function m:init() + return +end +]] -- cgit v1.2.3