Skip to content

Commit 1eeab05

Browse files
authored
Define eltype only for type (#41)
1 parent eb820eb commit 1eeab05

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/DiffResults.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ end
124124
end
125125
end
126126

127-
Base.eltype(r::DiffResult) = eltype(typeof(r))
128-
129127
Base.eltype(::Type{D}) where {O,V,D<:DiffResult{O,V}} = eltype(V)
130128

131129
Base.:(==)(a::DiffResult, b::DiffResult) = a.value == b.value && a.derivs == b.derivs

0 commit comments

Comments
 (0)