Skip to content

Commit e09329b

Browse files
mzgubicoxinabox
andauthored
Update src/differentials/composite.jl
Co-authored-by: Lyndon White <oxinabox@ucc.asn.au>
1 parent 467d913 commit e09329b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/differentials/composite.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ canonicalize(comp::Composite{<:Tuple, <:Tuple}) = comp
180180
# Dict composite are always in their canonical form.
181181
canonicalize(comp::Composite{<:Any, <:AbstractDict}) = comp
182182

183-
# Composites of unspecified primal types
183+
# Composites of unspecified primal types (indicated by specifying exactly `Any`)
184+
# all combinations of type-params are specified here to avoid ambiguities
184185
canonicalize(comp::Composite{Any, <:NamedTuple{L}}) where {L} = comp
185186
canonicalize(comp::Composite{Any, <:Tuple}) where {L} = comp
186187
canonicalize(comp::Composite{Any, <:AbstractDict}) where {L} = comp

0 commit comments

Comments
 (0)