Skip to content

Commit 3b90d08

Browse files
JamesWrigleyjpsamaroo
authored andcommitted
Use Base.promote_op() instead of Base._return_type()
return_type() is kinda broken in v1.10, see: JuliaLang/julia#52385 In any case Base.promote_op() is the official public API for this operation so we should use it anyway.
1 parent 61c08dc commit 3b90d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/submission.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ end
220220
function EagerThunkMetadata(spec::EagerTaskSpec)
221221
f = chunktype(spec.f).instance
222222
arg_types = ntuple(i->chunktype(spec.args[i][2]), length(spec.args))
223-
return_type = Base._return_type(f, Base.to_tuple_type(arg_types))
223+
return_type = Base.promote_op(f, arg_types...)
224224
return EagerThunkMetadata(return_type)
225225
end
226226
chunktype(t::EagerThunk) = t.metadata.return_type

0 commit comments

Comments
 (0)