Why was the original Union return type parsed as type Any?

Yes 4 is the magic number for union splitting. If you want to have efficient code for larger unions, consider using DynamicalSumTypes.jl :slight_smile:

2 Likes