Skip to content

Commit 3ee0269

Browse files
committed
Revert "Remove pure function annotation"
This reverts commit 6711b66.
1 parent 6711b66 commit 3ee0269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dual.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ end
337337
# Promotion/Conversion #
338338
########################
339339

340-
function Base.promote_rule(::Type{Dual{T1,V1,N1}},
340+
Base.@pure function Base.promote_rule(::Type{Dual{T1,V1,N1}},
341341
::Type{Dual{T2,V2,N2}}) where {T1,V1,N1,T2,V2,N2}
342342
# V1 and V2 might themselves be Dual types
343343
if T2 T1

0 commit comments

Comments
 (0)