-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: nightly (2.6.0-dev.20170927)
See the fourslash test codeFixClassExprClassImplementClassFunctionVoidInferred.ts.
Similar errors are in other tests marked with GH#18795.
Code
class A {
f() {}
}
let B = class implements A {[| |]}Expected behavior:
f(): void {
throw new Error("Method not implemented.");
}Actual behavior:
f(): void {
throw new Error("Method not implemented.");
}Testing with newFileContent instead of newRangeContent gives even uglier results:
class A {
f() {}
}
let B = class implements A {f(): void {
throw new Error("Method not implemented.");
}
}Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do this