Skip to content

Record can have two fields with the same name #3033

Description

@jruderman

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

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

Activity

  1. added a commit that references this issue on Aug 21, 2023
  2. added a commit that references this issue on Aug 21, 2026
  3. added a commit that references this issue on Sep 30, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions