Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractArray(::Array) constructor no longer works #26867

Closed
dlfivefifty opened this issue Apr 20, 2018 · 1 comment
Closed

AbstractArray(::Array) constructor no longer works #26867

dlfivefifty opened this issue Apr 20, 2018 · 1 comment

Comments

@dlfivefifty
Copy link
Contributor

Not sure if this is intentional, but it's different behaviour from v0.6.2:

julia> AbstractArray(randn(10,10))
ERROR: MethodError: no method matching AbstractArray(::Array{Float64,2})
Closest candidates are:
  AbstractArray(::Any) where T<:AbstractArray at abstractarray.jl:22
  AbstractArray(::Union{QR, LinearAlgebra.QRCompactWY}) at /Users/solver/Projects/julia7/usr/share/julia/site/v0.7/LinearAlgebra/src/qr.jl:427
  AbstractArray(::QRPivoted) at /Users/solver/Projects/julia7/usr/share/julia/site/v0.7/LinearAlgebra/src/qr.jl:434
  ...
Stacktrace:
 [1] AbstractArray(::Array{Float64,2}) at ./abstractarray.jl:22
 [2] top-level scope

AbstractArray{Float64}(randn(10,10)) works as expected, without error.

@fredrikekre
Copy link
Member

duplicate of your own issue #26177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants