-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
0 / 10 of 1 issue completed
Copy link
Labels
regressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous versiontriageThis should be discussed on a triage callThis should be discussed on a triage calltypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch
Description
I've been running some package tests on the upcoming julia version (1.10rc) and noticed this error newly introduced there, compared to 1.9:
julia> Tuple{Union{}}
# 1.9:
Tuple{Union{}}
# 1.10:
ERROR: Tuple field type cannot be Union{}
Not sure if introduced deliberately or as a side-effect of some other change, but it breaks perfectly working code. And I don't see it anywhere in Tuple
docs that it shouldn't support all element types.
The above is an MWE, and below is the simplified situation where I actually encountered it:
julia> X = StructArray(a=Union{}[], b=[]);
# 1.10 throws error right here
# 1.9 lets you proceed just fine
# can work with the non-Union{} column:
julia> X.b
Any[]
# can retrieve the Union{} column as well, of course cannot access its elements
julia> X.a |> typeof
Vector{Union{}} (alias for Array{Union{}, 1})
nsajko and LilithHafner
Sub-issues
Metadata
Metadata
Assignees
Labels
regressionRegression in behavior compared to a previous versionRegression in behavior compared to a previous versiontriageThis should be discussed on a triage callThis should be discussed on a triage calltypes and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch