move stage2 compile errors out of special folder

This commit is contained in:
Veikka Tuominen
2022-12-11 16:28:48 +02:00
parent 0b4461d97b
commit 327fb798c3
16 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
const E = enum { a, b };
const U = union(E) {
a: u32,
a: u32,
};
export fn foo() void {
var u: U = .{ .a = 123 };
_ = u;
}
// error
// target=native
//
// :4:5: error: duplicate union field: 'a'
// :3:5: note: other field here
// :2:11: note: union declared here