Skip to content

Formatting of conditional types #21716

Closed
Closed
@falsandtru

Description

@falsandtru

TypeScript Version: 2.7.0-dev.20180206

Expected behavior:

type Diff<T, U> = T extends U ? never : T;

Actual behavior:

type Diff<T, U> = T extends U?never: T;

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions