diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 17:50:17 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 17:50:17 +0800 |
commit | 146a7c38ecad0918f5e4d1a132701064d0118260 (patch) | |
tree | e72e4989716a5476719bd84d3f5c9991ba5a6c06 /test/hover | |
parent | f9157be94e64051e319d0f44e00995376fdb7598 (diff) | |
download | lua-language-server-146a7c38ecad0918f5e4d1a132701064d0118260.zip |
resolve #560
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index a7af112d..13cc87e0 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1196,8 +1196,7 @@ TEST [[ local <?f?> ]] [[ -function f(x: number, y: number) - -> boolean +local f: fun(x: number, y: number):boolean ]] TEST [[ @@ -1216,8 +1215,7 @@ TEST [[ function t(<?f?>) end ]] [[ -function () - -> void +local f: fun():void ]] TEST [[ @@ -1227,7 +1225,7 @@ local t = {f = f} t:<?f?>() ]] [[ -function f(a: any, b: any) +field t:f: fun(a: any, b: any) ]] TEST [[ @@ -1286,8 +1284,7 @@ TEST [[ local <?f?> ]] [[ -function f(x?: boolean) - -> boolean? +local f: fun(x: boolean):boolean ]] TEST [[ @@ -1445,7 +1442,7 @@ TEST [[ local function f(<?callback?>) end ]] [[ -function (x: integer, ...) +local callback: fun(x: integer, ...: nil) ]] TEST [[ |