Skip to content

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

Closed
@ElMassimo

Description

@ElMassimo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❗ p4-importantPriority 4: this fixes bugs that violate documented behavior, or significantly improves perf.🐞 bugSomething isn't workingscope: compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions