stage2: move duplicate error set check to AstGen

This commit is contained in:
Mitchell Hashimoto
2022-03-15 14:33:23 -07:00
committed by Andrew Kelley
parent 9a6fa67cbc
commit 394252c9db
3 changed files with 26 additions and 8 deletions

View File

@@ -4487,8 +4487,8 @@ pub fn addCases(ctx: *TestContext) !void {
\\ _ = a;
\\}
, &[_][]const u8{
"tmp.zig:3:5: error: duplicate error: 'Bar'",
"tmp.zig:2:5: note: other error here",
"tmp.zig:3:5: error: duplicate error set field 'Bar'",
"tmp.zig:2:5: note: previous declaration here",
});
ctx.objErrStage1("cast negative integer literal to usize",