From b870bc090ce17747de961a713fc6333d2e6d401f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 5 Nov 2022 01:25:21 +0800 Subject: infer parameter type by function type #1457 --- test/type_inference/init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/type_inference') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 9af0d28c..36bbaa83 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3931,3 +3931,8 @@ local t = { [5] = function() end, } ]] + +TEST 'number' [[ +---@type fun(x: number) +local function f() end +]] -- cgit v1.2.3