From 10275c3667256e720371ce5280658c3e4f950d2f Mon Sep 17 00:00:00 2001 From: fesily Date: Tue, 16 Jan 2024 13:38:52 +0800 Subject: automatic derivation 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 63220a59..851443ec 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