aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/test.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/test.scala')
-rw-r--r--tests/pos/test.scala11
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