diff options
Diffstat (limited to 'tests/pending/run/t6260.scala')
-rw-r--r-- | tests/pending/run/t6260.scala | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/pending/run/t6260.scala b/tests/pending/run/t6260.scala deleted file mode 100644 index 3ad4926c8..000000000 --- a/tests/pending/run/t6260.scala +++ /dev/null @@ -1,12 +0,0 @@ -class Box[X <: CharSequence](val x: X) extends AnyVal { - def map[Y <: CharSequence](f: X => Y): Box[Y] = - ((bx: Box[X]) => new Box(f(bx.x)))(this) - override def toString = s"Box($x)" -} - -object Test { - def main(args: Array[String]): Unit = { - val g = (x: String) => x + x - println(new Box("abc") map g) - } -} |