Skip to content

pretty-printer loses parens around expr_fail in cast #953

Description

@jruderman
fn f() { (fail "boo") as float / 2.0; }

becomes

fn f() { (fail "boo" as float) / 2.0; }

which becomes

fn f() { fail "boo" as float / 2.0; }

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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