Skip to content

Infinite recursion in Typer.checkAccessible #39

Closed
@samuelgruetter

Description

@samuelgruetter

In the following example, the Typer runs into an infinite recursion (StackOverflowError):

object test534 {

  trait B {
    type D <: { type T }
    def d: D
  }

  val bc: B = new B {
    def d: D = ???
  }

  val d: bc.D = bc.d

  // infinite loop in Typer
  val asT: d.T = ???

}

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