Skip to content

Commit ab79645

Browse files
authored
fix warning on 1.0
WARNING: local variable T conflicts with a static parameter in Type at /home/runner/work/ChainRulesCore.jl/ChainRulesCore.jl/src/projection.jl:368.
1 parent 3e051bc commit ab79645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projection.jl

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

366366
# another strategy is just to use the AbstractArray method
367367
function ProjectTo(x::Tridiagonal{T}) where {T<:Number}
368-
notparent = invoke(ProjectTo, Tuple{AbstractArray{T}} where {T<:Number}, x)
368+
notparent = invoke(ProjectTo, Tuple{AbstractArray{T2}} where {T2<:Number}, x)
369369
return ProjectTo{Tridiagonal}(; notparent=notparent)
370370
end
371371
function (project::ProjectTo{Tridiagonal})(dx::AbstractArray)

0 commit comments

Comments
 (0)