aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-01-28 19:01:09 +0100
committerMartin Odersky <odersky@gmail.com>2015-01-28 19:03:55 +0100
commit70e55d26100199b99502705233786bbdc15c4c6b (patch)
tree97fbfa865286a60ad90230b868179c3e61143eec /tests
parent37918e5d1eb53014b1116ea65381a56e93a3c855 (diff)
downloaddotty-70e55d26100199b99502705233786bbdc15c4c6b.tar.gz
dotty-70e55d26100199b99502705233786bbdc15c4c6b.tar.bz2
dotty-70e55d26100199b99502705233786bbdc15c4c6b.zip
Fixed problem with ensureSingleton
Need to also ensure that the singleton is stable. This makes compound.scala pass.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/compound.scala (renamed from tests/pending/pos/compound.scala)4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/pending/pos/compound.scala b/tests/pos/compound.scala
index 16dbf9a08..24a936f13 100644
--- a/tests/pending/pos/compound.scala
+++ b/tests/pos/compound.scala
@@ -1,5 +1,3 @@
-// There's still a problem with var's here, presumably because they are not paths.
-// Needs some more investigation.
abstract class A { type T }
abstract class B { val xz: Any }
@@ -11,6 +9,6 @@ abstract class Test {
}
abstract class Test2 {
- val yy: A with B { type T; val xz: T } = null;
+ var yy: A with B { type T; val xz: T } = null;
val xx: A with B { type T; val xz: T } = yy
}