Skip to content

Record can have two fields with the same name #3033

Closed
@jruderman

Description

@jruderman

I think this program should be rejected rather than printing "2".

fn main()
{
    io::println(int::str({x: 1, x: 2}.x));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions