From 2fefb37220f82300e2aa44442f1a42261d65e359 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 3 Oct 2010 03:19:21 +0000 Subject: One last batch of test cleanups and I think I'l... One last batch of test cleanups and I think I'll call it a day. If you're worried I didn't leave any for anyone else, let me put your fears to rest. PLENTY left to sift through. No review. --- test/files/pos/t0625.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/t0625.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t0625.scala b/test/files/pos/t0625.scala new file mode 100644 index 0000000000..5614542599 --- /dev/null +++ b/test/files/pos/t0625.scala @@ -0,0 +1,8 @@ +object Test { + def idMap[C[_],T](m: { def map[U](f: T => U): C[U] }): C[T] = m.map(t => t) + + def main(args: Array[String]): Unit = { + idMap(Some(5)) + idMap(Responder.constant(5)) + } +} -- cgit v1.2.3