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 {...@@ -3,14 +3,14 @@ pub const List = struct {
3 allocator: *Allocator,3 allocator: *Allocator,
44
5 pub fn init(allocator: *Allocator) List {5 pub fn init(allocator: *Allocator) List {
6 return List {6 return List{
7 .len = 0,7 .len = 0,
8 .allocator = allocator,8 .allocator = allocator,
9 };9 };
10 }10 }
11};11};
1212
13pub var global_allocator = Allocator {13pub var global_allocator = Allocator{
14 .field = 1234,14 .field = 1234,
15};15};
1616
...@@ -28,4 +28,4 @@ export fn foo() void {...@@ -28,4 +28,4 @@ export fn foo() void {
28// target=native28// target=native
29//29//
30// :23:6: error: no field or member function named 'init' in 'tmp.List'30// :23:6: error: no field or member function named 'init' in 'tmp.List'
31// :1:14: note: struct declared here31// :1:18: note: struct declared here