diff options
Diffstat (limited to 'test/signature/init.lua')
-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}, +} |