Skip to content

Commit 39adfe8

Browse files
Stephen Gutekanstemidoots
Stephen Gutekanst
authored andcommitted
update to latest zig version
Signed-off-by: Stephen Gutekanst <[email protected]>
1 parent f83948e commit 39adfe8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

generator.zig

+2-4
Original file line numberDiff line numberDiff line change
@@ -480,14 +480,12 @@ pub const Parser = struct {
480480
const return_type = try self.allocator.create(Type);
481481
return_type.* = .{ .void = {} };
482482

483-
const ty = .{
483+
return self.parseTypeSuffix(.{
484484
.function = .{
485485
.return_type = return_type,
486486
.params = std.ArrayList(Type).init(self.allocator),
487487
},
488-
};
489-
490-
return self.parseTypeSuffix(ty, is_const, true);
488+
}, is_const, true);
491489
},
492490
.kw_instancetype => {
493491
try self.match(.kw_instancetype);

0 commit comments

Comments
 (0)