Skip to content

Commit 14f2e62

Browse files
author
Andy Ferris
committed
Remove promote_type from function generator and move into body
1 parent 9ccda4e commit 14f2e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ end
2020
if tmp <: Vararg
2121
tmp = tmp.parameters[1]
2222
end
23-
t = promote_type(t, tmp)
23+
t = :(promote_type($t, $tmp))
2424
end
2525
return quote
2626
$(Expr(:meta,:pure))

0 commit comments

Comments
 (0)