Fixes an edgecase where a return type Tuple{Union{A,B,C}} would not respect the user-provided union_limit. This fixes it by adding special treatment for tuple types.
Note that this does not apply to any other struct. It just seems that tuples get special treatment by the compiler:
coverage: 99.682% (+0.004%) from 99.678%
when pulling 0a9d2db90353e9c8da15c88d46020bb91e5d4e7a on union-limit-within-tuple
into 2a4631579793959b0668a741e6809d42a342ad58 on main.
Fixes an edgecase where a return type
Tuple{Union{A,B,C}}
would not respect the user-providedunion_limit
. This fixes it by adding special treatment for tuple types.Note that this does not apply to any other struct. It just seems that tuples get special treatment by the compiler: