| ... | ... | @@ -3,14 +3,14 @@ pub const List = struct { |
| 3 | 3 | allocator: *Allocator, |
| 4 | 4 | |
| 5 | 5 | pub fn init(allocator: *Allocator) List { |
| 6 | | return List { |
| 6 | return List{ |
| 7 | 7 | .len = 0, |
| 8 | 8 | .allocator = allocator, |
| 9 | 9 | }; |
| 10 | 10 | } |
| 11 | 11 | }; |
| 12 | 12 | |
| 13 | | pub var global_allocator = Allocator { |
| 13 | pub var global_allocator = Allocator{ |
| 14 | 14 | .field = 1234, |
| 15 | 15 | }; |
| 16 | 16 | |
| ... | ... | @@ -28,4 +28,4 @@ export fn foo() void { |
| 28 | 28 | // target=native |
| 29 | 29 | // |
| 30 | 30 | // :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 |