1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-10-11 15:00:36 +02:00

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

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 parent_type(::Type{GroupRingElem}) = GroupRing
eltype(X::GroupRingElem) = eltype(X.coeffs) eltype(X::GroupRingElem) = eltype(X.coeffs)