Skip to content

Invalid subtype error message could be better #34393

Closed
@Keno

Description

@Keno

Currently as follows:

julia> abstract type Foo{S}; end

julia> struct Bar <: Foo; end
ERROR: invalid subtyping in definition of Bar
Stacktrace:
 [1] top-level scope at REPL[2]:1

Ideally it would at least tell you you forgot a type parameter, and maybe if it's extra nice show you the signature of the thing you're trying to subtype to show you what type parameters it has.

Metadata

Metadata

Assignees

No one assigned

    Labels

    error messagesBetter, more actionable error messagesgood first issueIndicates a good issue for first-time contributors to Julia

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions