-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Code
a.js file
this.a = 10;
tsc a.js --allowJS
Expected behavior:
no failure
Actual behavior:
Error: Debug Failure. SourceFile
at bindThisPropertyAssignment (c:\TypeScript\built\local\tsc.js:23135:30)
at bindWorker (c:\TypeScript\built\local\tsc.js:22848:29)
at bind (c:\TypeScript\built\local\tsc.js:22739:13)
at visitNode (c:\TypeScript\built\local\tsc.js:14173:24)
at Object.forEachChild (c:\TypeScript\built\local\tsc.js:14412:24)
at bindEachChild (c:\TypeScript\built\local\tsc.js:21543:16)
at bindChildrenWorker (c:\TypeScript\built\local\tsc.js:21644:21)
at bindChildren (c:\TypeScript\built\local\tsc.js:21513:17)
at bind (c:\TypeScript\built\local\tsc.js:22750:21)
at c:\TypeScript\built\local\tsc.js:21519:94
Related Issues:
Reported in #21140 (comment)
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue