Skip to content

Commit 2f23a9f

Browse files
authored
fix guess_tangent_type(::Bool) to return a type
1 parent 7730f38 commit 2f23a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tangent_types/abstract_zero.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ end
179179

180180
# Sad heauristic methods we need because of unassigned values
181181
guess_zero_tangent_type(::Type{T}) where {T<:Number} = T
182-
guess_zero_tangent_type(::Type{Bool}) = NoTangent()
182+
guess_zero_tangent_type(::Type{Bool}) = NoTangent
183183

184184
guess_zero_tangent_type(::Type{T}) where {T<:Integer} = typeof(float(zero(T)))
185185
function guess_zero_tangent_type(::Type{<:Array{T,N}}) where {T,N}

0 commit comments

Comments
 (0)