Skip to content

Commit 1ce68f8

Browse files
author
Miha Zgubic
committed
allow Any to be backed by anything
1 parent 51c0821 commit 1ce68f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tangent_types/tangent.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ struct Tangent{P,T} <: AbstractTangent
3131
T <: Tuple || _backing_error(P, T, Tuple)
3232
elseif P <: AbstractDict
3333
T <: AbstractDict || _backing_error(P, T, AbstractDict)
34+
elseif P == Any # can be anything
3435
else # Any other struct (including NamedTuple)
3536
T <: NamedTuple || _backing_error(P, T, NamedTuple)
3637
end

0 commit comments

Comments
 (0)