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

deepcopy bug in UnionAll types #30911

Closed
ekinakyurek opened this issue Jan 31, 2019 · 0 comments
Closed

deepcopy bug in UnionAll types #30911

ekinakyurek opened this issue Jan 31, 2019 · 0 comments
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@ekinakyurek
Copy link
Contributor

ekinakyurek commented Jan 31, 2019

Possible bug in deepcopy

julia> x = Array{Float32}
Array{Float32,N} where N

julia> x.var == x.body.parameters[2]
true

julia> x.var
N

julia> y = deepcopy(x)
Array{Float32,N} where N

julia> y == Array{Float32}
true

julia> y = deepcopy(Array{Float32,N} where N)
Array{Float32,N} where N

julia> y == Array{Float32} # !!!
false

julia> y.var == y.body.parameters[2]
false

julia> y.var
N

julia> y.body.parameters[2]
N

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
@JeffBezanson JeffBezanson self-assigned this Jan 31, 2019
@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label Feb 1, 2019
JeffBezanson added a commit that referenced this issue Feb 1, 2019
KristofferC pushed a commit that referenced this issue Feb 4, 2019
@KristofferC KristofferC mentioned this issue Feb 4, 2019
39 tasks
KristofferC pushed a commit that referenced this issue Feb 11, 2019
KristofferC pushed a commit that referenced this issue Feb 11, 2019
@KristofferC KristofferC mentioned this issue Feb 11, 2019
39 tasks
KristofferC pushed a commit that referenced this issue Apr 20, 2019
KristofferC pushed a commit that referenced this issue Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants