aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t7520.scala
blob: 747f5278e50c0a81f2a98f8be2378c05528a0be5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class A {
  val x: Singleton with this.type = this
  val y: this.type = x
}

class B {
  val x = ""
  val xs: x.type with Singleton = x
  val y: x.type = xs
}