zig/test/cases/compile_errors/redefinition_of_struct.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

9 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