Skip to content

Another inference bug#3067

@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

Not sure if this one relates to #3038

interfaceA{x: string;}interfaceB{x: string;y: string;}functioncopyB(value: B): B{returnundefined;}varvalues: A[]=[];values.map(value=>copyB(value))// fails as expectedvalues.map(copyB);// <-- expected to fail, but it does not

Can seen at playground: link

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions