aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t1220.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t1220.scala')
-rw-r--r--tests/pending/run/t1220.scala15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/pending/run/t1220.scala b/tests/pending/run/t1220.scala
deleted file mode 100644
index 3f70107ce..000000000
--- a/tests/pending/run/t1220.scala
+++ /dev/null
@@ -1,15 +0,0 @@
-object Test extends dotty.runtime.LegacyApp {
-
- class QSRichIterable[A](self: Iterable[A]) {
- def filterMap[R](f: PartialFunction[A,R]) =
- self filter (f.isDefinedAt) map f
- }
-
- object Un {
- def unapply(i: Int): Option[Int] = Some(i)
- }
-
- val richIter = new QSRichIterable(List(0, 1, 2, 3, 4))
-
- assert((richIter filterMap {case Un(3) => 7}) == List(7))
-}