Skip to content

[Spec] Hiding of call/construct signatures #87

Closed
@mhegazy

Description

@mhegazy
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 TypeScriptFixedA PR has been merged for this issueSpecIssues related to the TypeScript language specification

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions