summaryrefslogtreecommitdiff
path: root/test-nsc/files/run/ctor-order.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/run/ctor-order.scala')
-rw-r--r--test-nsc/files/run/ctor-order.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test-nsc/files/run/ctor-order.scala b/test-nsc/files/run/ctor-order.scala
index b21ae27658..73c1a08164 100644
--- a/test-nsc/files/run/ctor-order.scala
+++ b/test-nsc/files/run/ctor-order.scala
@@ -11,10 +11,12 @@ class Outer {
* *before* calling the super constructors. This is tested by
* mixin M1, which tries to access global from the enclosing class.
*/
+ val outer = Outer.this;
}
trait M1: X {
Console.println(global.x);
+ Console.println(outer.global.x);
}
}