Ambiguous promotion rule warnings
jiahao opened this issue · comments
Jiahao Chen commented
julia> using SIUnits
Warning: New definition
promote_rule(Type{T},Type{SIQuantity{S,m,kg,s,A,K,mol,cd}}) at /Users/jiahao/.julia/SIUnits/src/SIUnits.jl:75
is ambiguous with:
promote_rule(Type{MathConst{s}},Type{T<:Number}) at constants.jl:9.
To fix, define
promote_rule(Type{MathConst{s}},Type{SIQuantity{S,m,kg,s,A,K,mol,cd}})
before the new definition.
Warning: New definition
promote_rule(Type{T},Type{SIUnit{m,kg,s,A,K,mol,cd}}) at /Users/jiahao/.julia/SIUnits/src/SIUnits.jl:76
is ambiguous with:
promote_rule(Type{MathConst{s}},Type{T<:Number}) at constants.jl:9.
To fix, define
promote_rule(Type{MathConst{s}},Type{SIUnit{m,kg,s,A,K,mol,cd}})
before the new definition.