1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-09-08 15:31:44 +02:00

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

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