Commit ec8d29ff25
Changed files (2)
lib
docs
src
lib/docs/main.js
@@ -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:
src/Autodoc.zig
@@ -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() },
},