no need to parametrize parent by type of coefficients

This commit is contained in:
kalmar 2017-07-25 14:47:59 +02:00
parent 0d3dad9c4d
commit 39039f9ec1
1 changed files with 1 additions and 1 deletions

View File

@ -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)}