stage2: add compile log statement (#7191)

This commit is contained in:
g-w1
2020-12-25 19:40:49 -05:00
committed by GitHub
parent 939bd52c8a
commit 1634d45f1d
12 changed files with 119 additions and 38 deletions

View File

@@ -350,7 +350,7 @@ pub const Value = extern union {
val = elem_ptr.array_ptr;
},
.empty_array => return out_stream.writeAll(".{}"),
.enum_literal => return out_stream.print(".{z}", .{self.cast(Payload.Bytes).?.data}),
.enum_literal => return out_stream.print(".{z}", .{@fieldParentPtr(Payload.Bytes, "base", self.ptr_otherwise).data}),
.bytes => return out_stream.print("\"{Z}\"", .{self.cast(Payload.Bytes).?.data}),
.repeated => {
try out_stream.writeAll("(repeated) ");