From adfac399b1815731de6f12af1fc3e38516969dc7 Mon Sep 17 00:00:00 2001 From: fesily Date: Wed, 21 Feb 2024 15:02:35 +0800 Subject: add infer function param type --- test/hover/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index 0cfce3a4..bed5828a 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -276,7 +276,7 @@ function string.lower(s: string|number) -> string ]] --- 不根据传入值推测参数类型 +-- 根据传入值推测参数类型 TEST [[ local function x(a, ...) end @@ -284,7 +284,7 @@ end (1, 2, 3, 4, 5, 6, 7) ]] [[ -function x(a: any, ...any) +function x(a: integer, ...any) ]] TEST [[ -- cgit v1.2.3