diff options
Diffstat (limited to 'test/files/run/bug4291.scala')
-rw-r--r-- | test/files/run/bug4291.scala | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/files/run/bug4291.scala b/test/files/run/bug4291.scala index 3eeaa88be0..6053c7ac6a 100644 --- a/test/files/run/bug4291.scala +++ b/test/files/run/bug4291.scala @@ -1,12 +1,6 @@ -object Test { - def returnType[T: Manifest](methodName: String) = ( - classManifest[T].erasure.getMethods - . filter (x => !x.isBridge && x.getName == methodName) - . map (_.getGenericReturnType.toString) - ) - def show[T: Manifest](methodName: String) = - println(manifest[T].erasure.getName +: returnType[T](methodName).distinct mkString " ") +import scala.tools.partest._ +object Test extends SigTest { def main(args: Array[String]): Unit = { show[List[_]]("apply") show[Option[_]]("get") |