add parent_type(::Type{GroupRingElem})

This commit is contained in:
kalmar 2017-07-06 10:06:17 +02:00
parent 6a22b91c1e
commit 19f6906d33
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ export GroupRing, GroupRingElem, complete, create_pm
elem_type(::GroupRing) = GroupRingElem
parent_type{T}(::GroupRingElem{T}) = GroupRing
parent_type(::GroupRingElem) = GroupRing
parent_type(::Type{GroupRingElem}) = GroupRing
parent{T}(g::GroupRingElem{T}) = g.parent