diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-06 11:42:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-06 11:42:08 +0800 |
commit | 65d80d31d4b679bb95eed8f002be7cf82ca18c94 (patch) | |
tree | 86afb8b50a114476782fbc99d657a376b9a50811 /test/signature | |
parent | dec0117d74e7856fa9950aba7d3fb6647be29079 (diff) | |
download | lua-language-server-65d80d31d4b679bb95eed8f002be7cf82ca18c94.zip |
fix #483
Diffstat (limited to 'test/signature')
-rw-r--r-- | test/signature/init.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua index 372709e3..931a8d73 100644 --- a/test/signature/init.lua +++ b/test/signature/init.lua @@ -227,3 +227,18 @@ function m.f(self: table) ]], arg = {14, 24}, } + +TEST [[ +---@alias nnn table<number, string> + +---@param x nnn +local function f(x, y, z) end + +f($) +]] +{ + label = [[ +function f(x: table<number, string>, y: any, z: any) +]], + arg = {12, 35}, +} |