aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t920.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-02-09 00:57:42 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-02-09 13:21:40 +0100
commit3c8f04e4c5e1dae42e321c3bb446688d573bbeea (patch)
treeafc6a62043e424dee9d1701f89e52760f411e4fc /tests/run/t920.scala
parent6101ffa0b428f06e1c7788e35566b17f09c95b7c (diff)
downloaddotty-3c8f04e4c5e1dae42e321c3bb446688d573bbeea.tar.gz
dotty-3c8f04e4c5e1dae42e321c3bb446688d573bbeea.tar.bz2
dotty-3c8f04e4c5e1dae42e321c3bb446688d573bbeea.zip
Enable tests for old fixed issues
Fix #530, #654, #681, #684, #685
Diffstat (limited to 'tests/run/t920.scala')
-rw-r--r--tests/run/t920.scala20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/run/t920.scala b/tests/run/t920.scala
new file mode 100644
index 000000000..6a7f122d5
--- /dev/null
+++ b/tests/run/t920.scala
@@ -0,0 +1,20 @@
+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;
+ }
+}