Skip to content

UndefVarError when using 2+ type-variables in type alias #123

@topolarity

Description

@topolarity
julia> struct Foo{T,V,N}; end

julia> const Bar{T,V} = Foo{T,V,1}
Bar (alias for Foo{T, V, 1} where {T, V})

julia> JuliaLowering.include_string(Main, "const Bar{T,V} = Foo{T,V,1}")
ERROR: UndefVarError: `V` not defined in `Main`

Currently blocking SparseArrays from precompiling successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions