Skip to content

Commit caad122

Browse files
authored
Merge pull request #155 from JuliaDiff/oscardssmith-zerobundle-type-show
fix show `Type{<:AbstractZeroBundle}`
2 parents 8296354 + a96c864 commit caad122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tangent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ wrapper_name(::Type{<:AbstractZeroBundle}) = "AbstractZeroBundle"
262262
function Base.show(io::IO, T::Type{<:AbstractZeroBundle{N, B}}) where {N,B}
263263
print(io, wrapper_name(T))
264264
print(io, @isdefined(N) ? "{$N, " : "{N, ")
265-
show(io, B)
265+
@isdefined(B) ? show(io, B) : print(io, "B")
266266
print(io, "}")
267267
end
268268

0 commit comments

Comments
 (0)