I am not sure if this is to be expected, or reflects and underlying issue with Julia, and if there are any workarounds.
julia> VERSION
v"1.6.0-beta1.1"
julia> using ThreadsX, Test
julia> @inferred ThreadsX.mapreduce(identity, +, 1:3)
ERROR: return type Int64 does not match inferred return type Any
I am not sure if this is to be expected, or reflects and underlying issue with Julia, and if there are any workarounds.