Skip to content

Regression: hash([1,2,[3]]) throws on 0.7 #26011

Closed
@chethega

Description

@chethega
versioninfo()
#Julia Version 0.7.0-DEV.3943
#Commit dcc39f4d8d* (2018-02-09 22:47 UTC)

hash([1,2,[3]])

ERROR: MethodError: no method matching widen(::Type{Array{Int64,1}})
Closest candidates are:
  widen(::Type{T}) where T at operators.jl:729
  widen(::T) where T at operators.jl:728
  widen(::Type{Int32}) at int.jl:629
  ...
Stacktrace:
 [1] widen at ./operators.jl:729 [inlined]
 [2] widen(::Array{Int64,1}) at ./operators.jl:728
 [3] hash(::Array{Any,1}, ::UInt64) at ./abstractarray.jl:2007
 [4] hash(::Array{Any,1}) at ./hashing.jl:18
 [5] top-level scope

Works fine on Julia Version 0.6.2 Commit d386e40 (2017-12-13 18:08 UTC).

Metadata

Metadata

Assignees

Labels

arrays[a, r, r, a, y, s]bugIndicates an unexpected problem or unintended behaviorhashingregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions