Skip to content

Specialized string overload from derived interface not selected #374

@RyanCavanaugh

Description

@RyanCavanaugh

From #345:

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

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

var b:B;
// Should not error
b('foo').charAt(0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions