summaryrefslogtreecommitdiff
path: root/test-nsc
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2005-11-29 09:07:02 +0000
committerIulian Dragos <jaguarul@gmail.com>2005-11-29 09:07:02 +0000
commite528160f31fec9bcd6c2230455a0ad2ce8250a89 (patch)
tree144fa09a4cf7a8540e130eae679e470681192355 /test-nsc
parent1d2b98eaa166ad7bc0902200c53bf7aa1ef0411a (diff)
downloadscala-e528160f31fec9bcd6c2230455a0ad2ce8250a89.tar.gz
scala-e528160f31fec9bcd6c2230455a0ad2ce8250a89.tar.bz2
scala-e528160f31fec9bcd6c2230455a0ad2ce8250a89.zip
*** empty log message ***
Diffstat (limited to 'test-nsc')
-rw-r--r--test-nsc/files/run/ctor-order.check1
-rw-r--r--test-nsc/files/run/ctor-order.scala2
2 files changed, 3 insertions, 0 deletions
diff --git a/test-nsc/files/run/ctor-order.check b/test-nsc/files/run/ctor-order.check
index f599e28b8a..b2f7f08c17 100644
--- a/test-nsc/files/run/ctor-order.check
+++ b/test-nsc/files/run/ctor-order.check
@@ -1 +1,2 @@
10
+10
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);
}
}