summaryrefslogtreecommitdiff
path: root/test/signature/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/signature/init.lua')
-rw-r--r--test/signature/init.lua13
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)',
+}