JuliaApproximation / DomainSets.jl

A Julia package for describing domains as continuous sets of elements
MIT License
72 stars 12 forks source link

convert(Domain{BigFloat},UnitInterval()) works no longer #30

Closed vincentcp closed 5 years ago

vincentcp commented 5 years ago
julia> Domains.approx_in(big(0),UnitInterval())
ERROR: MethodError: Cannot `convert` an object of type UnitInterval{Float64} to an object of type Domain{BigFloat}
Closest candidates are:
  convert(::Type{Domain{T}}, ::Interval{L,R,T} where T) where {L, R, T} at /Users/vincentcp/.julia/packages/IntervalSets/fdNqH/src/interval.jl:70
  convert(::Type{Domain{S}}, ::Type{T}) where {T, S} at /Users/vincentcp/.julia/packages/Domains/PGqdg/src/domains/trivial.jl:91
  convert(::Type{Domain{T}}, ::Point{T}) where T at /Users/vincentcp/.julia/packages/Domains/PGqdg/src/domains/simple.jl:95
  ...
Stacktrace:
 [1] approx_in(::BigInt, ::UnitInterval{Float64}, ::Float64) at /Users/vincentcp/.julia/packages/Domains/PGqdg/src/generic/domain.jl:71
 [2] approx_in(::BigInt, ::UnitInterval{Float64}) at /Users/vincentcp/.julia/packages/Domains/PGqdg/src/generic/domain.jl:69
 [3] top-level scope at none:0