diff options
author | Martin Odersky <odersky@gmail.com> | 2014-02-04 11:39:32 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-02-06 16:02:42 +0100 |
commit | 380c34d70b86466b896fa3d9a3c42109e4df8b56 (patch) | |
tree | 6e25d9505d849daba1433705e7bd501aa963cfc0 /tests | |
parent | 09a87aad0449af38e2efeafb8c3770fb7d61a437 (diff) | |
download | dotty-380c34d70b86466b896fa3d9a3c42109e4df8b56.tar.gz dotty-380c34d70b86466b896fa3d9a3c42109e4df8b56.tar.bz2 dotty-380c34d70b86466b896fa3d9a3c42109e4df8b56.zip |
Fix bug for reading type arguments in ClassfileParser
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/test.scala | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/pos/test.scala b/tests/pos/test.scala index d63bb12b6..18741481a 100644 --- a/tests/pos/test.scala +++ b/tests/pos/test.scala @@ -1,11 +1,8 @@ object test { - import java.util.concurrent.{ Future, Callable, ExecutorService } - def callable[T](body: => T): Callable[T] = new Callable[T] { override def call() = body } + import collection.JavaConverters._ - - def xsubmit(x: Runnable): Future[_] = ??? - //def xsubmit[T](x: Runnable, y: T): Future[T] = ??? - def xsubmit[U](x: Callable[U]): Future[U] = ??? - def spawn0[V](body: V): Future[V] = xsubmit(callable(body)) + private val elems = + (new java.util.LinkedHashMap[String, List[Int]]).asScala + val elems2: collection.mutable.Map[String, List[Int]] = elems }
\ No newline at end of file |