We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0cb5a0 commit 740e711Copy full SHA for 740e711
src/types.jl
@@ -159,6 +159,10 @@ The output symtype of applying variable `f` to arugments of symtype `arg_symtype
159
if the arguments are of the wrong type then this function will error.
160
"""
161
function promote_symtype(f::Sym{FnType{X,Y}}, args...) where {X, Y}
162
+ if X === Tuple
163
+ return Y
164
+ end
165
+
166
nrequired = fieldcount(X)
167
ngiven = nfields(args)
168
0 commit comments