Skip to content

Deal with expansion lost caused by intersection #178

Closed
@samuelgruetter

Description

@samuelgruetter

From Section 4.2 of the FOOL'12 DOT paper:

object test {

  trait T1 {
    type A <: B
    type B
  }

  trait T2 {
    type A
    type B <: A
  }

  val x: T1 & T2 = ???
  val y: x.A = 42

}

This example sends dotty into an infinite loop. In Scala 2, this cannot happen because there's no symmetric type intersection.

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