From 3b90d08a33ae9e82c3db096ed89fba9d4c2b1f39 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Thu, 14 Mar 2024 10:42:33 +0100 Subject: [PATCH] Use Base.promote_op() instead of Base._return_type() return_type() is kinda broken in v1.10, see: https://github.com/JuliaLang/julia/issues/52385 In any case Base.promote_op() is the official public API for this operation so we should use it anyway. --- src/submission.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/submission.jl b/src/submission.jl index f6b2090b9..ff2746a8e 100644 --- a/src/submission.jl +++ b/src/submission.jl @@ -220,7 +220,7 @@ end function EagerThunkMetadata(spec::EagerTaskSpec) 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 EagerThunkMetadata(return_type) end chunktype(t::EagerThunk) = t.metadata.return_type