diff --git a/src/Class.zig b/src/Class.zig index 69ef748..29baeff 100644 --- a/src/Class.zig +++ b/src/Class.zig @@ -231,8 +231,8 @@ pub fn format(self: *const Self, w: *std.Io.Writer) std.Io.Writer.Error!void { _ = try w.write("this class:\n"); try this_class.format(w, depth, indent + 1, self.constant_pool); + _ = try w.write("super class:\n"); if (self.superClass() catch return error.WriteFailed) |super_class| { - _ = try w.write("super class:\n"); try super_class.format(w, depth, indent + 1, self.constant_pool); }