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 18f7ed6 commit f48c9ffCopy full SHA for f48c9ff
src/types.jl
@@ -299,7 +299,9 @@ end
299
300
_promote_symtype(f::Sym, args) = promote_symtype(f, map(symtype, args)...)
301
function _promote_symtype(f, args)
302
- if length(args) == 1
+ if length(args) == 0
303
+ promote_symtype(f)
304
+ elseif length(args) == 1
305
promote_symtype(f, symtype(args[1]))
306
elseif length(args) == 2
307
promote_symtype(f, symtype(args[1]), symtype(args[2]))
0 commit comments