diff --git a/src/Resolve/graphtype.jl b/src/Resolve/graphtype.jl index b8f3d91a97..7bb5250e35 100644 --- a/src/Resolve/graphtype.jl +++ b/src/Resolve/graphtype.jl @@ -1439,7 +1439,12 @@ function prune_graph!(graph::Graph) return pvers0[vmsk0[1:(end-1)]] end new_pvers = [compute_pvers(new_p0) for new_p0 = 1:new_np] - new_vdict = [Dict(vn => v0 for (v0,vn) in enumerate(new_pvers[new_p0])) for new_p0 = 1:new_np] + + # explicitly writing out the following loop since the generator equivalent caused type inference failure + new_vdict = Vector{Dict{VersionNumber, Int}}(undef, length(new_pvers)) + for new_p0 in eachindex(new_vdict) + new_vdict[new_p0] = Dict(vn => v0 for (v0,vn) in enumerate(new_pvers[new_p0])) + end # The new constraints are all going to be `true`, except possibly # for the "uninstalled" state, which we copy over from the old