We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ce68f8 commit d1a9f5bCopy full SHA for d1a9f5b
src/tangent_types/tangent.jl
@@ -31,7 +31,7 @@ struct Tangent{P,T} <: AbstractTangent
31
T <: Tuple || _backing_error(P, T, Tuple)
32
elseif P <: AbstractDict
33
T <: AbstractDict || _backing_error(P, T, AbstractDict)
34
- elseif P == Any # can be anything
+ elseif P === Any # can be anything
35
else # Any other struct (including NamedTuple)
36
T <: NamedTuple || _backing_error(P, T, NamedTuple)
37
end
0 commit comments