Keno / SIUnits.jl

Efficient unit-checked computation
Other
70 stars 26 forks source link

Ambiguous promotion rule warnings #3

Closed jiahao closed 10 years ago

jiahao commented 10 years ago
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.