diff options
Diffstat (limited to 'test/signature/init.lua')
-rw-r--r-- | test/signature/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua index b78fdaa5..e92b89e8 100644 --- a/test/signature/init.lua +++ b/test/signature/init.lua @@ -316,3 +316,16 @@ X({}, <??>) { 'function X(a: { x: number, y: number, z: number }, <!b: string!>)' } + +TEST [[ +---@overload fun(x: number) +---@overload fun(x: number, y: number) +local function f(...) +end + +f(<??>) +]] +{ +'function f(<!x: number!>)', +'function f(<!x: number!>, y: number)', +} |