Skip to content

StackOverflowError on Julia 1.2 when constructing a NamedTuple with value type Type{T}Β #33270

@mohdibntarek

Description

@mohdibntarek

I am getting a StackOverFlowError with the following code on Julia 1.2. This used to work on Julia 1.1.

julia> NamedTuple{(:T,), Tuple{Type{Float64}}}((Float64,))
ERROR: StackOverflowError:
Stacktrace:
 [1] convert(::Type{Tuple{Type{Float64}}}, ::Tuple{DataType}) at .\essentials.jl:304
 [2] Type at .\tuple.jl:218 [inlined]
 [3] NamedTuple{(:T,),Tuple{Type{Float64}}}(::Tuple{DataType}) at .\namedtuple.jl:62 (repeats 37299 times)
 [4] top-level scope at REPL[14]:1

Metadata

Metadata

Assignees

Labels

regressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions