summaryrefslogtreecommitdiff
path: root/test/files/pos/nested.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/nested.scala')
-rw-r--r--test/files/pos/nested.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/files/pos/nested.scala b/test/files/pos/nested.scala
index e81b710d72..b038fce39d 100644
--- a/test/files/pos/nested.scala
+++ b/test/files/pos/nested.scala
@@ -12,11 +12,13 @@ class A(pa : Int) {
}
}
-class M(x : Int) {
+trait M {
+ val x : Int;
def m1 = x
}
-class A1(x : Int) extends A(x) with M(x) {
+class A1(x0 : Int) extends A(x0) with M {
+ val x = x0;
class D() extends B(42) {
val c2 = new C(66);
class E() extends C(5) {