master
1const A = struct { x: u32 };
2const T = struct { x: u32 };
3export fn foo() void {
4 const a = A{ .x = 123 };
5 _ = @as(T, a);
6}
7
8// error
9//
10// :5:16: error: expected type 'tmp.T', found 'tmp.A'
11// :1:11: note: struct declared here
12// :2:11: note: struct declared here