diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-10-26 15:44:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-10-26 15:44:20 +0800 |
commit | 202d4199114b283abe3f38a63c3d845dd183ce11 (patch) | |
tree | c1032005f0cb04a1eaae3fc21cb91435b3347d42 /test-beta/hover | |
parent | a12fec5c00f8b6f77aac845977c6c8aab36518bb (diff) | |
download | lua-language-server-202d4199114b283abe3f38a63c3d845dd183ce11.zip |
doc.generic 的 hover
Diffstat (limited to 'test-beta/hover')
-rw-r--r-- | test-beta/hover/init.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index b3b6719d..feb574d4 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -973,6 +973,18 @@ function f() 2. C ]] +TEST [[ +---@generic T +---@param x T +---@return T +local function <?f?>(x) +end +]] +[[ +function f(x: <T>) + -> <T> +]] + do return end TEST [[ ---@generic T @@ -984,7 +996,7 @@ end local <?r?> = f(1) ]] [[ -local r: number +local r: integer ]] TEST [[ |