aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-11 09:19:09 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-11 09:19:09 +0100
commit24ccb77061d0b6d3b5fa0464e9afb3e48c67eea9 (patch)
tree5b8eb872ad8497c81d60ac0aff3dc1c6285d8fa7 /tests/pending/run
parentdf7d8914aa139e8961db6ce0651e09b118d8bab2 (diff)
downloaddotty-24ccb77061d0b6d3b5fa0464e9afb3e48c67eea9.tar.gz
dotty-24ccb77061d0b6d3b5fa0464e9afb3e48c67eea9.tar.bz2
dotty-24ccb77061d0b6d3b5fa0464e9afb3e48c67eea9.zip
Move test to pending
The underlying problem on MacOS/Windows remains: We have a class `B` and an object `b` in the same scope. We used to get a conflict on `B$/b$` because we created an empty companion object for `B`. Now we get a conflict for `B/b`, because the `b` object creates to classes: `b.class` an `b$.class` and `b.class` clashes with `B.class`.
Diffstat (limited to 'tests/pending/run')
-rw-r--r--tests/pending/run/t920.scala25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pending/run/t920.scala b/tests/pending/run/t920.scala
new file mode 100644
index 000000000..a9874e1a8
--- /dev/null
+++ b/tests/pending/run/t920.scala
@@ -0,0 +1,25 @@
+object Test {
+ trait A;
+ trait Foo0 { def foo : A; }
+ trait Baz extends Foo0;
+ trait B extends A {
+ def initialize = {
+ trait Foo extends Test.Foo0 {
+ def foo : B.this.type = B.this;
+ }
+ class baz extends Baz with Foo {
+ override def toString = "baz"
+ }
+ Console.println(new baz);
+ }
+ }
+ object b extends B;
+ def main(args : Array[String]) : Unit = {
+ b.initialize;
+ }
+ class XYZ
+}
+
+
+
+