diff options
Diffstat (limited to 'test/pending/pos')
-rw-r--r-- | test/pending/pos/t5685.scala | 23 | ||||
-rw-r--r-- | test/pending/pos/t5685b.scala | 23 |
2 files changed, 0 insertions, 46 deletions
diff --git a/test/pending/pos/t5685.scala b/test/pending/pos/t5685.scala deleted file mode 100644 index 9ac42a174e..0000000000 --- a/test/pending/pos/t5685.scala +++ /dev/null @@ -1,23 +0,0 @@ -trait X[A] { - def x: A -} - -trait XPrint[A] extends X[A] { - abstract override def x: A = { - val a = super.x - println(a) - a - } -} - -trait F[A, B] { outer => - def apply(xv: X[A]): X[B] - - def andThen[C](f: F[B, C]): F[A, C] = new F[A, C] { - def apply(xv: X[A]): X[C] = f(new XX(xv) with XPrint[B]) - } - - class XX(xv: X[A]) extends X[B] { - def x = outer(xv).x - } -} diff --git a/test/pending/pos/t5685b.scala b/test/pending/pos/t5685b.scala deleted file mode 100644 index 18ff803f89..0000000000 --- a/test/pending/pos/t5685b.scala +++ /dev/null @@ -1,23 +0,0 @@ -trait X[+A] { - def x: A -} - -trait XPrint[+A] extends X[A] { - abstract override def x: A = { - val a = super.x - println(a) - a - } -} - -trait F[-A, +B] { outer => - def apply(xv: X[A]): X[B] - - def andThen[C](f: F[B, C]): F[A, C] = new F[A, C] { - def apply(xv: X[A]): X[C] = f(new XX(xv) with XPrint[B]) - } - - class XX(xv: X[A]) extends X[B] { - def x = outer(xv).x - } -} |