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
This issue is definitely related to #18758, but it is different from that issue in that the tag is also present in the top-level type.
As in the top-level type, the nested types form a generic union, I believe this is also related to #13995.
Bug Report
🔎 Search Terms
nested discriminated union
This issue is definitely related to #18758, but it is different from that issue in that the tag is also present in the top-level type.
As in the top-level type, the nested types form a generic union, I believe this is also related to #13995.
🕗 Version & Regression Information
This is the behavior in every version I tried.
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
The above code should compile without errors.
🙂 Expected behavior
The type of the
inner
property onouter
should be narrowed based on the value ofouter
'skind
property.The text was updated successfully, but these errors were encountered: