aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t6575a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t6575a.scala')
-rw-r--r--tests/pending/pos/t6575a.scala15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/pending/pos/t6575a.scala b/tests/pending/pos/t6575a.scala
deleted file mode 100644
index f128714da..000000000
--- a/tests/pending/pos/t6575a.scala
+++ /dev/null
@@ -1,15 +0,0 @@
-trait X { def foo: PartialFunction[Int, Int] }
-
-trait Y extends X {
- // Inferred type was AbstractPartialFunction[Int, Int] with Serializable
- abstract override def foo = { case i => super.foo(i) * 2 }
-}
-trait Z extends X {
- // ditto
- abstract override def foo = { case i => super.foo(i) + 3 }
-}
-
-trait Comb extends Y with Z {
- // ... which led to a type error here.
- abstract override def foo: PartialFunction[Int, Int] = { case i => super.foo(i) - 2 }
-}