summaryrefslogblamecommitdiff
path: root/test/files/neg/t2296b/S_2.scala
blob: 6cdb0cfabab811f1db38ba59d1dc938c165debaf (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_1

  trait S extends J_1 {
    def bar() {
      foo()
    }
  }

  class SC extends J_1 with S
}

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