summaryrefslogtreecommitdiff
path: root/test/files/run/ctor-order.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-06-20 14:59:18 +0000
committerMartin Odersky <odersky@gmail.com>2008-06-20 14:59:18 +0000
commit2ed788315cbf63ee18d42cf18bb45a3391cd6189 (patch)
treed8fa37fad9df217950d7782f31316b0e7c4c28fc /test/files/run/ctor-order.scala
parent84f24cad144b2582b2e7e4b6b0359d5ff58fbeda (diff)
downloadscala-2ed788315cbf63ee18d42cf18bb45a3391cd6189.tar.gz
scala-2ed788315cbf63ee18d42cf18bb45a3391cd6189.tar.bz2
scala-2ed788315cbf63ee18d42cf18bb45a3391cd6189.zip
new STARR which implements pre-initialized fiel...
new STARR which implements pre-initialized fields correctly.
Diffstat (limited to 'test/files/run/ctor-order.scala')
-rw-r--r--test/files/run/ctor-order.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/ctor-order.scala b/test/files/run/ctor-order.scala
index 6201a4b70f..44e981e413 100644
--- a/test/files/run/ctor-order.scala
+++ b/test/files/run/ctor-order.scala
@@ -6,13 +6,13 @@ class Outer {
val x = 10;
}
- class X extends AnyRef with M1 {
+ class X extends {
/* The constructor of X should set this.$outer to the outer instance
* *before* calling the super constructors. This is tested by
* mixin M1, which tries to access global from the enclosing class.
*/
- val outer = Outer.this;
- }
+ val outer = Outer.this
+ } with AnyRef with M1
trait M1 { self: X =>
Console.println(global.x);