Skip to content

Formatting with type parameter defaults and arrays and tuples #23919

@falsandtru

Description

@falsandtru

TypeScript Version: 2.9.0-dev.201xxxxx

Search Terms:

Code

declare function f<T extends void[] = never>(): void;
declare function g<T extends [void] = never>(): void;

Expected behavior:

declare function f<T extends void[] = never>(): void;
declare function g<T extends [void] = never>(): void;

Actual behavior:

declare function f<T extends void[]= never>(): void;
declare function g<T extends [void]= never>(): void;

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions