Keno / SIUnits.jl

Efficient unit-checked computation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ambigious methods warning

yuyichao opened this issue · comments

julia> using SIUnits
Warning: New definition 
    convert(Type{SIUnits.SIQuantity{T,m,kg,s,A,K,mol,cd,rad,sr}}, T) at /usr/share/julia/site/v0.4/SIUnits/src/SIUnits.jl:134
is ambiguous with: 
    convert(Type{T<:Number}, Base.Dates.Period) at dates/periods.jl:21.
To fix, define 
    convert(Type{SIUnits.SIQuantity{_<:Base.Dates.Period,m,kg,s,A,K,mol,cd,rad,sr}}, _<:Base.Dates.Period)
before the new definition.
Warning: New definition 
    convert(Type{SIUnits.NonSIQuantity{T,U}}, T) at /usr/share/julia/site/v0.4/SIUnits/src/SIUnits.jl:539
is ambiguous with: 
    convert(Type{T<:Number}, Base.Dates.Period) at dates/periods.jl:21.
To fix, define 
    convert(Type{SIUnits.NonSIQuantity{_<:Base.Dates.Period,U}}, _<:Base.Dates.Period)
before the new definition.
julia> versioninfo()
Julia Version 0.4.0-dev+4949
Commit 7ddc684* (2015-05-22 23:28 UTC)
Platform Info:
  System: Linux (x86_64-unknown-linux-gnu)
  CPU: Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz
  WORD_SIZE: 64
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas
  LIBM: libm
  LLVM: libLLVM-3.6.0