Skip to content

Partial of interface and generic is not compiled #20204

@fxlrnrpt

Description

@fxlrnrpt

TypeScript Version: 2.7.0-dev.20171121

Code

interface A {
    af: string
}
const a = <T extends {}>(): Partial<T & A> => ({ af: 'asfa' })

Link to the playground

Expected behavior:
Should compile

Actual behavior:
Compilation fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions