summaryrefslogtreecommitdiff
path: root/test/files/pos/matthias4.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/matthias4.scala')
-rw-r--r--test/files/pos/matthias4.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/matthias4.scala b/test/files/pos/matthias4.scala
index c6ce79d682..bcda93746b 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;
}
}
-trait a123 extends Object with _a with _b {
+abstract class 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);
}
}
- trait Linker {
+ abstract class Linker() {
val b: m.this.b.type = m.this.b;
val B: m.this.B.type = m.this.B;
type B = m.this.B;