From 2c4a7561c42782bbbef77bf5f94838705c1a0455 Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 25 Jul 2017 14:35:09 +0200 Subject: [PATCH] fix: parent_type, elem_type dispatch after type! --- src/GroupRings.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 2f31bb2..faf2c0d 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -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)