diff options
Diffstat (limited to 'test/files/pos/matthias4.scala')
-rw-r--r-- | test/files/pos/matthias4.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/matthias4.scala b/test/files/pos/matthias4.scala index bcda93746b..c6ce79d682 100644 --- a/test/files/pos/matthias4.scala +++ b/test/files/pos/matthias4.scala @@ -29,7 +29,7 @@ trait _a extends Object with _b { def setX(x: B.X): Unit; } } -abstract class a123() extends Object with _a with _b { +trait a123 extends Object with _a with _b { val a: this.type = this; val A: A = new A(); class A() extends AObject { @@ -67,13 +67,13 @@ trait _m { abstract class m() extends Object with _m with _b { val m: this.type = this; val M: M = new M(); - class M() extends MObject with a123() with Linker() { + class M() extends MObject with a123 with Linker { def test() = { val x: B.X = B.getX(); A.setX(x); } } - abstract class Linker() { + trait Linker { val b: m.this.b.type = m.this.b; val B: m.this.B.type = m.this.B; type B = m.this.B; |