Skip to content

Formatting failure with optional chaining #33807

Closed
@falsandtru

Description

@falsandtru

@rbuckton

TypeScript Version: typescript@3.7.0-dev.20191004

Search Terms:

Code

declare const o: { m(): [] | undefined };
o.m()?.length;

Expected behavior:

o.m()?.length;

Actual behavior:

o.m() ?.length;

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions