julia> Fun(x->2,d)
ERROR: type: chebyshevtransform: in typeassert, expected Array{Int64,1}, got Array{Float64,1}
in chebyshevtransform at /Users/goretkin/.julia/v0.3/ApproxFun/src/LinearAlgebra/chebyshevtransform.jl:32
in chebyshevtransform at /Users/goretkin/.julia/v0.3/ApproxFun/src/LinearAlgebra/chebyshevtransform.jl:27
in transform at /Users/goretkin/.julia/v0.3/ApproxFun/src/Spaces/Ultraspherical/ChebyshevSpace.jl:22
in Fun at /Users/goretkin/.julia/v0.3/ApproxFun/src/Fun/constructors.jl:10
in zerocfsFun at /Users/goretkin/.julia/v0.3/ApproxFun/src/Fun/constructors.jl:89
in Fun at /Users/goretkin/.julia/v0.3/ApproxFun/src/Fun/constructors.jl:137
in Fun at /Users/goretkin/.julia/v0.3/ApproxFun/src/Fun/constructors.jl:142
The error is not directly related to it, but it might trip someone up that they see expected Array{Int64,1}, got Array{Float64,1}, when in fact the issue is that the function is returning Int64 instead of Float64
not sure if this is a legitimate issue, but
The error is not directly related to it, but it might trip someone up that they see
expected Array{Int64,1}, got Array{Float64,1}
, when in fact the issue is that the function is returning Int64 instead of Float64