diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-31 15:05:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-31 15:05:00 +0800 |
commit | 709d4d828978ecd787dbbf108b04e985c4afc0a4 (patch) | |
tree | f2184e5193a0291cddfe8eaf56cf771f89041da7 /test-beta/hover | |
parent | 1ce3f9689ff1b072385b7af69c588f951f2d4098 (diff) | |
download | lua-language-server-709d4d828978ecd787dbbf108b04e985c4afc0a4.zip |
doc.type.function 支持 ?
Diffstat (limited to 'test-beta/hover')
-rw-r--r-- | test-beta/hover/init.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index 6c91a47c..75750f78 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -1209,8 +1209,17 @@ print(<?f?>) ]] [[ (2 个定义,2 个原型) -(1) function (y: boolean) (1) function f(x: number, y: boolean, z: string) +(1) function f(y: boolean) +]] + +TEST [[ +---@type fun(x: boolean?):boolean? +local <?f?> +]] +[[ +function f(x: boolean?) + -> boolean? ]] do return end |