Skip to content

Commit

Permalink
Use Base.promote_op() instead of Base._return_type()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JamesWrigley committed Aug 18, 2024
1 parent 3a982c9 commit 5b49cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/submission.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ end
function DTaskMetadata(spec::DTaskSpec)
f = chunktype(spec.f).instance
arg_types = ntuple(i->chunktype(spec.args[i][2]), length(spec.args))
return_type = Base._return_type(f, Base.to_tuple_type(arg_types))
return_type = Base.promote_op(f, arg_types...)
return DTaskMetadata(return_type)
end

Expand Down

0 comments on commit 5b49cee

Please sign in to comment.