Skip to content

Commit 73c62dc

Browse files
committed
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 329e8be commit 73c62dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/submission.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ end
186186
function EagerThunkMetadata(spec::EagerTaskSpec)
187187
f = chunktype(spec.f).instance
188188
arg_types = ntuple(i->chunktype(spec.args[i][2]), length(spec.args))
189-
return_type = Base._return_type(f, Base.to_tuple_type(arg_types))
189+
return_type = Base.promote_op(f, arg_types...)
190190
return EagerThunkMetadata(return_type)
191191
end
192192
chunktype(t::EagerThunk) = t.metadata.return_type

0 commit comments

Comments
 (0)