Ref sugar (take 2) is not applied when casting in TypeScript #4254
Labels
❗ p4-important
Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf.
🐞 bug
Something isn't working
scope: compiler
Version
3.2.0-beta.7
Reproduction link
SFC Playground
Steps to reproduce
After opening the reproduction link, follow the instructions in the screen, and check the console.
What is expected?
Variables should be desugared even when being typecasted or asserted as non-null. Type casting should not affect runtime behavior.
What is actually happening?
Some usages are not being desugared by the compiler when casting explicitly or using the Non-Null Assertion Operator in TypeScript.
The text was updated successfully, but these errors were encountered: