aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2016-02-16 10:40:16 +0100
committerDmitry Petrashko <dark@d-d.me>2016-02-16 10:40:16 +0100
commit5e8023335e641c9c05c6517a82764571e7ef6386 (patch)
tree982b1ec0e3e770449a8eb1cc7d4e3c118b716c29 /tests/pending/run
parentafec2a7a597e6e7736e4d26620f8488e9587b7b0 (diff)
parentd3c331782d19994997d920807b16f2edb26dce0d (diff)
downloaddotty-5e8023335e641c9c05c6517a82764571e7ef6386.tar.gz
dotty-5e8023335e641c9c05c6517a82764571e7ef6386.tar.bz2
dotty-5e8023335e641c9c05c6517a82764571e7ef6386.zip
Merge pull request #1075 from dotty-staging/fix-t920-test
Drop empty companion objects
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
+}
+
+
+
+