allocgate: fix failing tests

This commit is contained in:
Lee Cannon
2021-10-29 03:00:00 +01:00
parent 1093b09a98
commit 80bbf234e0
5 changed files with 10 additions and 10 deletions

View File

@@ -6550,9 +6550,9 @@ pub fn addCases(ctx: *TestContext) !void {
ctx.objErrStage1("method call with first arg type wrong container",
\\pub const List = struct {
\\ len: usize,
\\ allocator: Allocator,
\\ allocator: *Allocator,
\\
\\ pub fn init(allocator: Allocator) List {
\\ pub fn init(allocator: *Allocator) List {
\\ return List {
\\ .len = 0,
\\ .allocator = allocator,
@@ -6573,7 +6573,7 @@ pub fn addCases(ctx: *TestContext) !void {
\\ x.init();
\\}
, &[_][]const u8{
"tmp.zig:23:5: error: expected type 'Allocator', found '*List'",
"tmp.zig:23:5: error: expected type '*Allocator', found '*List'",
});
ctx.objErrStage1("binary not on number literal",