-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous versiontypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch
Description
# run in a fresh session
@show typeof([1, missing, 2])
prints typeof([1, missing, 2]) = Vector{Union{Missing, Int64}}
as expected.
But add a totally irrelevant line, and eltype changes:
# run in a fresh session
[1, missing, nothing, 2]
@show typeof([1, missing, 2])
prints typeof([1, missing, 2]) = Vector{Any}
.
Only happens on 1.9rc, not 1.8 nor 1.9 betas.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous versiontypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch