Aliases are lost when conditionals are applied #61581
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
🔎 Search Terms
aliases lost
🕗 Version & Regression Information
Discussion with @Andarist:
but now I'm pretty sure it isn't
Anyway, I'm sort of leaving breadcrumbs for myself - sorry for oversharing 😉 I'll dig further later
⏯ Playground Link
https://www.typescriptlang.org/play/?#code/C4TwDgpgBAShDOBXANsAPAQQDRQKID4oBeKAbwCgoqoAnCAQwBMB7AO2RCgH1h6BzAFxQARAHkA1sMrU6TNhygA3eskQQhGcgF8oAHzLSqslu049+Q4QDF6AS2RTqtBiYUQaNZjSG5t5cowQAMbI9HRQQWzwwFC28HBIqEIAFIhCiKzirMwA7qwAlMSEiLHwsAgo6PSsIDjVIPj+kazRUABmrMRQmDgEybasYEIJlT14hPrRNAN8hUSEcSOo-YOFAPyxg1CWzJJAA
💻 Code
🙁 Actual behavior
🙂 Expected behavior
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: