diff options
author | Martin Odersky <odersky@gmail.com> | 2014-02-03 22:40:54 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-02-03 22:41:03 +0100 |
commit | 4e34962fba727975c071d6288913d89b4692a08f (patch) | |
tree | e3ffccfe4f3c047149b32da1635ae749f8eecd4c /tests/pos/test.scala | |
parent | 2a760aa7cee00829fe7b1649cad1efa5ddf8e259 (diff) | |
download | dotty-4e34962fba727975c071d6288913d89b4692a08f.tar.gz dotty-4e34962fba727975c071d6288913d89b4692a08f.tar.bz2 dotty-4e34962fba727975c071d6288913d89b4692a08f.zip |
Commenting out unused alternative isSubType implementation.
Diffstat (limited to 'tests/pos/test.scala')
-rw-r--r-- | tests/pos/test.scala | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/pos/test.scala b/tests/pos/test.scala index edb644209..d63bb12b6 100644 --- a/tests/pos/test.scala +++ b/tests/pos/test.scala @@ -1,7 +1,11 @@ object test { - import scala.collection.breakOut - - def name(i: Int) = i.toString - - (0 until 10).map(name)(breakOut) + + import java.util.concurrent.{ Future, Callable, ExecutorService } + def callable[T](body: => T): Callable[T] = new Callable[T] { override def call() = body } + + + 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)) }
\ No newline at end of file |