Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ref sugar (take 2) is not applied when casting in TypeScript #4254

Closed
ElMassimo opened this issue Aug 4, 2021 · 0 comments
Closed

Ref sugar (take 2) is not applied when casting in TypeScript #4254

ElMassimo opened this issue Aug 4, 2021 · 0 comments
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working scope: compiler

Comments

@ElMassimo
Copy link

ElMassimo commented Aug 4, 2021

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.

@posva posva added 🐞 bug Something isn't working ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. scope: compiler labels Aug 5, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working scope: compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants