Skip to content

Commit

Permalink
Move deprecated Vararg UnionAll outside (#493)
Browse files Browse the repository at this point in the history
* Move deprecated Vararg UnionAll outside

* Update src/projection.jl

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/projection.jl

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
oxinabox and github-actions[bot] authored Oct 16, 2021
1 parent 38c4089 commit 59948e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ ProjectTo(::AbstractZero) = ProjectTo{NoTangent}() # Any x::Zero in forward pas
# Also, any explicit construction with fields, where all fields project to zero, itself
# projects to zero. This simplifies projectors for wrapper types like Diagonal([true, false]).
const _PZ = ProjectTo{<:AbstractZero}
const _PZ_Tuple = Tuple{_PZ,Vararg{<:_PZ}} # 1 or more ProjectTo{<:AbstractZeros}
const _PZ_Tuple = Tuple{_PZ,Vararg{_PZ}} # 1 or more ProjectTo{<:AbstractZeros}
function ProjectTo{P}(::NamedTuple{T,<:_PZ_Tuple}) where {P,T}
return ProjectTo{NoTangent}()
end
Expand Down

0 comments on commit 59948e5

Please sign in to comment.