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 467d913 commit e09329bCopy full SHA for e09329b
src/differentials/composite.jl
@@ -180,7 +180,8 @@ canonicalize(comp::Composite{<:Tuple, <:Tuple}) = comp
180
# Dict composite are always in their canonical form.
181
canonicalize(comp::Composite{<:Any, <:AbstractDict}) = comp
182
183
-# Composites of unspecified primal types
+# Composites of unspecified primal types (indicated by specifying exactly `Any`)
184
+# all combinations of type-params are specified here to avoid ambiguities
185
canonicalize(comp::Composite{Any, <:NamedTuple{L}}) where {L} = comp
186
canonicalize(comp::Composite{Any, <:Tuple}) where {L} = comp
187
canonicalize(comp::Composite{Any, <:AbstractDict}) where {L} = comp
0 commit comments