Skip to content

Recursion limit error typechecking value of abstract type with type member and subtyping #4560

Open
@pweisenburger

Description

@pweisenburger

The following code compiles using Scala but crashes Dotty with a StackOverflowError:

trait Trait {
  type A <: { type T = B }
  type B <: A
}

trait SubTrait extends Trait {
  val v: A
}

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