StructArrays.jl icon indicating copy to clipboard operation
StructArrays.jl copied to clipboard

use `Base.promote_op` instead of `Core.Compiler.return_type`

Open oscardssmith opened this issue 1 year ago • 1 comments

This moves to using a semi-documented interface from a compiler internal function (and at the same time, fixes the issues with Tuple{Union{}} on 1.10).

oscardssmith avatar Feb 27 '24 18:02 oscardssmith

fixes the issues with Tuple{Union{}} on 1.10

Would be useful to add a test demonstrating what's fixed here.

I think Union{} components aren't tested explicitly for now – Union{} was just a regular type that worked same as any other, before 1.10.

aplavin avatar Feb 28 '24 17:02 aplavin