From 39039f9ec17efca5efb66f81c09e08804495a260 Mon Sep 17 00:00:00 2001 From: kalmar Date: Tue, 25 Jul 2017 14:47:59 +0200 Subject: [PATCH] no need to parametrize parent by type of coefficients --- src/GroupRings.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 3c84fe3..6a60410 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -74,7 +74,7 @@ parent_type(::Type{GroupRingElem}) = GroupRing eltype(X::GroupRingElem) = eltype(X.coeffs) -parent{T}(g::GroupRingElem{T}) = g.parent +parent(g::GroupRingElem) = g.parent Base.promote_rule{T<:Number,S<:Number}(::Type{GroupRingElem{T}}, ::Type{GroupRingElem{S}}) = GroupRingElem{promote_type(T,S)}