Skip to content

Specialized overload signature inheritance broken #345

@csnover

Description

@csnover

In the current release compiler, the following works and compiles without errors:

interface A {
  (key:string):void;
}

interface B extends A {
  (key:'foo'):string;
}

In the new compiler, an error:

testcase.ts(6,3): Specialized overload signature is not assignable to any non-specialized signature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions