Skip to content

Commit

Permalink
update to latest zig version
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Dec 31, 2024
1 parent f83948e commit 39adfe8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions generator.zig
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,12 @@ pub const Parser = struct {
const return_type = try self.allocator.create(Type);
return_type.* = .{ .void = {} };

const ty = .{
return self.parseTypeSuffix(.{
.function = .{
.return_type = return_type,
.params = std.ArrayList(Type).init(self.allocator),
},
};

return self.parseTypeSuffix(ty, is_const, true);
}, is_const, true);
},
.kw_instancetype => {
try self.match(.kw_instancetype);
Expand Down

0 comments on commit 39adfe8

Please sign in to comment.