parent_type dispatches after Type of element

This commit is contained in:
kalmar 2017-07-23 17:01:11 +02:00
parent 8a8d2237c5
commit 166c4c217b
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ end
elem_type{T<:Group}(G::WreathProduct{T}) = WreathProductElem{elem_type(T)}
parent_type{T<:GroupElem}(::WreathProductElem{T}) =
parent_type{T<:GroupElem}(::Type{WreathProductElem{T}}) =
WreathProduct{parent_type(T)}
parent(g::WreathProductElem) = WreathProduct(parent(g.n[1]), parent(g.p))