broader *(::{}, ::GroupRingElem) to prevent Nemo generic *(::, RingElem)

This commit is contained in:
kalmarek 2017-11-17 15:27:03 +01:00
parent 9a1bb2e707
commit 15a003ab72
1 changed files with 2 additions and 2 deletions

View File

@ -295,8 +295,8 @@ end
(*)(a, X::GroupRingElem) = mul(a,X)
(*)(X::GroupRingElem, a) = mul(a,X)
# disallow Nemo.Rings to hijack *(::Integer, ::RingElem)
(*)(a::Union{Integer, Rational}, X::GroupRingElem) = mul(a,X)
# disallow Nemo.Rings to hijack *(::, ::GroupRingElem)
*(a::Union{AbstractFloat, Integer, Nemo.RingElem, Rational}, X::GroupRingElem) = mul(a,X)
(/)(X::GroupRingElem, a) = 1/a*X