Skip to content

pretty-printer does not preserve parens in (a = 10).x; #919

Closed
@jruderman

Description

@jruderman

Issue #890 took care of the simple case, but this more complex case is still broken.

fn g() { (a = 10).x; }

becomes

fn g() { a = 10.x; }

which does not parse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prettyArea: Pretty printing (including `-Z unpretty`)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions