-
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 issueSpecIssues related to the TypeScript language specificationIssues related to the TypeScript language specification
Milestone
Description
interface Base2 {
(x: number): number;
}
interface I2 extends Base2 {
(x: number): string; // error because base returns non-void
}
This code is illegal in 1.0 because call signature in I2
hides one in Base2
. We've discussed that that this restriction should be relaxed as it covers very limited surface
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSpecIssues related to the TypeScript language specificationIssues related to the TypeScript language specification