aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/t2296a/S.scala
blob: 2b2e6cddaa195bdb6e3871413322bbabf46969f0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                          
package s {
  import j.J

  trait S extends J {
    def bar(): Unit = {
      foo()
    }
  }

  class SC extends J with S
}

object Test {
  def main(args : Array[String]): Unit = {
    (new s.SC).bar()
    (new s.S { }).bar()
  }
}