fix: anyopaque_type. it was showing *[1]anyopaque now *anyopaque

This commit is contained in:
Vallahor 2022-05-28 14:30:27 -03:00 committed by Andrew Kelley
parent 2809b01b2f
commit ec8d29ff25
2 changed files with 3 additions and 3 deletions

View File

@ -1182,9 +1182,6 @@ var zigAnalysis;
default: throw "TODO";
case typeKinds.ComptimeExpr:
{
// trying to match the std lib types
// the *[1]anyopaque behavior it's happening
// because of the known issue with arrays and pointers
return "anyopaque";
}
case typeKinds.Array:

View File

@ -143,6 +143,9 @@ pub fn generateZirData(self: *Autodoc) !void {
.ComptimeFloat = .{ .name = tmpbuf.toOwnedSlice() },
},
.anyopaque_type => .{
.ComptimeExpr = .{ .name = tmpbuf.toOwnedSlice() },
},
.bool_type => .{
.Bool = .{ .name = tmpbuf.toOwnedSlice() },
},