Skip to content

error with julia new type system #255

@CarloLucibello

Description

@CarloLucibello

on julia 0.6, after JuliaLang/julia#18457, I get the following error

ERROR: LoadError: LoadError: ArgumentError: method definition for Type at /home/carlo/.julia/v0.6/DataStructures/src/hash_dict.jl:72 has free type variables
Stacktrace:
 [1] include_from_node1(::String) at ./loading.jl:532
 [2] include(::String) at ./sysimg.jl:14
 [3] include_from_node1(::String) at ./loading.jl:532
 [4] include(::String) at ./sysimg.jl:14
 [5] anonymous at ./<missing>:2
while loading /home/carlo/.julia/v0.6/DataStructures/src/hash_dict.jl, in expression starting on line 72
while loading /home/carlo/.julia/v0.6/DataStructures/src/DataStructures.jl, in expression starting on line 70

And here is the culprit

HashDict{V}(kv::Tuple{Vararg{Pair{TypeVar(:K),V}}}) = HashDict{Any,V}(kv)

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