mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
14 lines
255 B
Zig
14 lines
255 B
Zig
const Foo = union {
|
|
Bar: i32,
|
|
Bar: usize,
|
|
};
|
|
export fn entry() void {
|
|
const a: Foo = undefined;
|
|
_ = a;
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :2:5: error: duplicate union member name 'Bar'
|
|
// :3:5: note: duplicate name here
|
|
// :1:13: note: union declared here
|