You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess this should only have observable effects up to the extent that SomeEnum and SomeEnum.APPLE | SomeEnum.ORANGE | SomeEnum.BANANA are distinguishable.
Exactly when to perform subtype reduction is tricky business; there are some compromises we have to make in order for other scenarios to work. "Consistent" type display between different ways of generating observably-same types isn't something we can guarantee.
Activity
jack-williams commentedon Jul 30, 2019
This regressed between 3.0.1 -> 3.1.6.
And to add some keywords for searching:
enum subtype reduction
getUnionType
RyanCavanaugh commentedon Jul 30, 2019
Does this have observable effects other than quick info? I don't think it does?
jack-williams commentedon Jul 30, 2019
I guess this should only have observable effects up to the extent that
SomeEnumandSomeEnum.APPLE | SomeEnum.ORANGE | SomeEnum.BANANAare distinguishable.RyanCavanaugh commentedon Aug 7, 2019
Exactly when to perform subtype reduction is tricky business; there are some compromises we have to make in order for other scenarios to work. "Consistent" type display between different ways of generating observably-same types isn't something we can guarantee.