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
Had a chance to take a quick look at this one. The example cleverly exploits one of the few places we use isTypeIdenticalTo in the compiler--which so happens to be part of a check for conditional type compatibility where we require the extends types to be identical. As the example reveals, we don't consider a union enum type (such as sex in the example) to be identical to a manually constructed union of its constituents. I'm pretty sure no one really cares about this distinction, so I'm inclined to say this is working as intended.
Bug Report
🕗 Version & Regression Information
💻 Code
🙁 Actual behavior
false
forxxx
andyyy
.🙂 Expected behavior
true
everywhere.The text was updated successfully, but these errors were encountered: