diff --git a/src/flint/nmod_poly.jl b/src/flint/nmod_poly.jl index f5dc2dbb4..f84f41c9b 100644 --- a/src/flint/nmod_poly.jl +++ b/src/flint/nmod_poly.jl @@ -922,6 +922,8 @@ Base.promote_rule{V <: Integer}(::Type{nmod_poly}, ::Type{V}) = nmod_poly Base.promote_rule(::Type{nmod_poly}, ::Type{fmpz}) = nmod_poly +Base.promote_rule(::Type{nmod_poly}, ::Type{GenRes{fmpz}}) = nmod_poly + ############################################################################### # # Polynomial substitution