Skip to content

Re-evaluating parameterized type definitions erros #16424

Closed
@mauro3

Description

@mauro3

I noticed this inconsistency (both in 0.4 and 0.5):

julia> type B
       a
       end

julia> type B
       a
       end

julia> type A{T}
       a
       end

julia> type A{T}
       a
       end
ERROR: invalid redefinition of constant A

Would be nice if the second would not error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous versiontypes and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions