Skip to content

Commit 740e711

Browse files
committed
vararg callables
1 parent c0cb5a0 commit 740e711

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/types.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ The output symtype of applying variable `f` to arugments of symtype `arg_symtype
159159
if the arguments are of the wrong type then this function will error.
160160
"""
161161
function promote_symtype(f::Sym{FnType{X,Y}}, args...) where {X, Y}
162+
if X === Tuple
163+
return Y
164+
end
165+
162166
nrequired = fieldcount(X)
163167
ngiven = nfields(args)
164168

0 commit comments

Comments
 (0)