mirror of
https://github.com/ziglang/zig.git
synced 2025-12-08 07:13:08 +00:00
10 lines
181 B
Zig
10 lines
181 B
Zig
const A = struct { x: i32 };
|
|
const A = struct { y: i32 };
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:1: error: redeclaration of 'A'
|
|
// :1:1: note: other declaration here
|