Skip to content

Commit f48c9ff

Browse files
committed
Add the 0 case just in case.
1 parent 18f7ed6 commit f48c9ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,9 @@ end
299299

300300
_promote_symtype(f::Sym, args) = promote_symtype(f, map(symtype, args)...)
301301
function _promote_symtype(f, args)
302-
if length(args) == 1
302+
if length(args) == 0
303+
promote_symtype(f)
304+
elseif length(args) == 1
303305
promote_symtype(f, symtype(args[1]))
304306
elseif length(args) == 2
305307
promote_symtype(f, symtype(args[1]), symtype(args[2]))

0 commit comments

Comments
 (0)