fix: parent_type, elem_type dispatch after type!

This commit is contained in:
kalmar 2017-07-25 14:35:09 +02:00
parent 14e9a8505c
commit 2c4a7561c4
1 changed files with 1 additions and 2 deletions

View File

@ -77,9 +77,8 @@ export GroupRing, GroupRingElem, complete!, create_pm, star
#
###############################################################################
elem_type(::GroupRing) = GroupRingElem
elem_type(::Type{GroupRing}) = GroupRingElem
parent_type(::GroupRingElem) = GroupRing
parent_type(::Type{GroupRingElem}) = GroupRing
eltype(X::GroupRingElem) = eltype(X.coeffs)