Skip to content

pretty-printer turns #macro(...) into tup() #671

Closed
@jruderman

Description

@jruderman
fn main() {
    #macro("mylambda", x, body, {fn f(int x) -> int {ret body}; f});
    assert(#mylambda(y,y*2)(8) == 16);
}

becomes

fn main() {
    tup();
    assert (#mylambda(y, y * 2)(8) == 16);
}

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