authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-28 21:34:32-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-29 02:35:06-07:00
logdaac39364ad94b5ae374f7391653789da3f578a8
treeedd921f689523e937b5b433370f146eacc899caf
parent40f8f0134f5da9baaefd0fdab529d5585fa46199

fix compile error test case note column number


1 files changed, 3 insertions(+), 3 deletions(-)

test/cases/compile_errors/method_call_with_first_arg_type_wrong_container.zig+3-3
......@@ -3,14 +3,14 @@ pub const List = struct {
33 allocator: *Allocator,
44
55 pub fn init(allocator: *Allocator) List {
6 return List {
6 return List{
77 .len = 0,
88 .allocator = allocator,
99 };
1010 }
1111};
1212
13pub var global_allocator = Allocator {
13pub var global_allocator = Allocator{
1414 .field = 1234,
1515};
1616
......@@ -28,4 +28,4 @@ export fn foo() void {
2828// target=native
2929//
3030// :23:6: error: no field or member function named 'init' in 'tmp.List'
31// :1:14: note: struct declared here
31// :1:18: note: struct declared here