Skip to content

Inheritance through a parameterized type alias fails #4557

@OlivierBlanvillain

Description

@OlivierBlanvillain
class Parser[T, Elem]

object Test {
  type P[T] = Parser[T, Char]
  class CustomParser extends P[Unit]
}

Dotty wrongly complains that Test.P is not a class type

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions