summaryrefslogtreecommitdiff
path: root/test/files/neg/abstract-class-2.scala
blob: 19f74f3da664620ce6065eb21fa73132e2ac4807 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class P {
  trait S1
  val p = new P

  trait S2 {
    def f(x: p.S1): Int
  }
}

class P2 extends P {
  object O2 extends S2 {
    def f(x: S1) = 5
  }
}