parser: add notes to decl_between_fields error

This commit is contained in:
Veikka Tuominen
2022-02-17 22:14:45 +02:00
parent 92f2767814
commit 6b65590715
6 changed files with 129 additions and 59 deletions

View File

@@ -877,6 +877,8 @@ pub fn addCases(ctx: *TestContext) !void {
\\}
, &[_][]const u8{
"tmp.zig:6:5: error: declarations are not allowed between container fields",
"tmp.zig:5:5: note: field before declarations here",
"tmp.zig:9:5: note: field after declarations here",
});
ctx.objErrStage1("non-extern function with var args",