aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/redefinition_of_struct.zig
blob: da7b2fa4dd0763fd2de1e16bed5a06585497ee7c (plain)
1
2
3
4
5
6
7
8
9
10
const A = struct { x: i32 };
const A = struct { y: i32 };

// error
// backend=stage2
// target=native
//
// :1:7: error: duplicate struct member name 'A'
// :2:7: note: duplicate name here
// :1:1: note: struct declared here