Skip to content

Record can have two fields with the same name #3033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jruderman opened this issue Jul 26, 2012 · 0 comments
Closed

Record can have two fields with the same name #3033

jruderman opened this issue Jul 26, 2012 · 0 comments
Labels
A-type-system Area: Type system
Milestone

Comments

@jruderman
Copy link
Contributor

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

fn main()
{
    io::println(int::str({x: 1, x: 2}.x));
}
@ghost ghost assigned catamorphism Jul 26, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 21, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Dependency upgrade resulting from `cargo update`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants