From 7b3e7f4b0a62b7c9c3b895e89b4fe79bb8f350ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 22 Jun 2022 01:41:16 +0800 Subject: fix --- test/hover/init.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index 1b6b2231..7fec9254 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1949,8 +1949,8 @@ x({}, () end) ]] TEST [[ ----@overload fun(x, y):string ----@overload fun(x):number +---@overload fun(x: number, y: number):string +---@overload fun(x: number):number ---@return boolean local function f() end @@ -1964,8 +1964,8 @@ function f() ]] TEST [[ ----@overload fun(x, y):string ----@overload fun(x):number +---@overload fun(x: number, y: number):string +---@overload fun(x: number):number ---@return boolean local function f() end @@ -1974,12 +1974,12 @@ local n2 = (0) local n3 = f(0, 0) ]] [[ -local f: fun(x: any):number +local f: fun(x: number):number ]] TEST [[ ----@overload fun(x, y):string ----@overload fun(x):number +---@overload fun(x: number, y: number):string +---@overload fun(x: number):number ---@return boolean local function f() end @@ -1988,5 +1988,5 @@ local n2 = f(0) local n3 = (0, 0) ]] [[ -local f: fun(x: any, y: any):string +local f: fun(x: number, y: number):string ]] -- cgit v1.2.3