| 1 | const Foo = union { |
| 2 | Bar: i32, |
| 3 | Bar: usize, |
| 4 | }; |
| 5 | export fn entry() void { |
| 6 | const a: Foo = undefined; |
| 7 | _ = a; |
| 8 | } |
| 9 | |
| 10 | // error |
| 11 | // |
| 12 | // :2:5: error: duplicate union member name 'Bar' |
| 13 | // :3:5: note: duplicate name here |
| 14 | // :1:13: note: union declared here |