fix compile error test case note column number
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user