summaryrefslogtreecommitdiff
path: root/test/files/pos/scoping1.scala
blob: c9bc14b563e2ac008b0d3b264b2ca523c881aa3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object This with Application {
     trait A {
         def foo(): unit;
     }
     class C: A {
         def bar() = this.foo();
     }
  class D extends C with A {
    def foo() = ()
  }
  val c: C = new D;
}