Commit daac39364a
Changed files (1)
test
cases
compile_errors
test/cases/compile_errors/method_call_with_first_arg_type_wrong_container.zig
@@ -3,14 +3,14 @@ pub const List = struct {
allocator: *Allocator,
pub fn init(allocator: *Allocator) List {
- return List {
+ return List{
.len = 0,
.allocator = allocator,
};
}
};
-pub var global_allocator = Allocator {
+pub var global_allocator = Allocator{
.field = 1234,
};
@@ -28,4 +28,4 @@ export fn foo() void {
// target=native
//
// :23:6: error: no field or member function named 'init' in 'tmp.List'
-// :1:14: note: struct declared here
+// :1:18: note: struct declared here