-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Async/Await overrides variables #40047
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: API: TransformsRelates to the public transform APIRelates to the public transform APIDomain: JS EmitThe issue relates to the emission of JavaScriptThe issue relates to the emission of JavaScriptFixedA PR has been merged for this issueA PR has been merged for this issueHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-reprosThis issue has compiler-backed repros: https://aka.ms/ts-reprosRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: API: TransformsRelates to the public transform APIRelates to the public transform APIDomain: JS EmitThe issue relates to the emission of JavaScriptThe issue relates to the emission of JavaScriptFixedA PR has been merged for this issueA PR has been merged for this issueHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-reprosThis issue has compiler-backed repros: https://aka.ms/ts-reprosRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
TypeScript Version: ^4.1.0-dev.20200814
Node-Version: v14.8.0
Search Terms:
async await overrides merges variable
Code
tsconfig
Expected behavior:
The return value of the
funcmethod should not be merged with the value property.Actual behavior:
The value from the
funcmethod somehow will be merged with value.Playground Link:
Cannot reproduce the issue on playground :(.
Related Issues: