aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i0248-inherit-refined.scala
blob: 246d8163ee39112132c2f4732ab8d970afdccab7 (plain) (blame)
1
2
3
4
5
6
7
8
9
object test {
  class A { type T }
  type X = A { type T = Int }
  class B extends X
  type Y = A & B
  class C extends Y
  type Z = A | B
  class D extends Z
}