aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-03 22:40:54 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-03 22:41:03 +0100
commit4e34962fba727975c071d6288913d89b4692a08f (patch)
treee3ffccfe4f3c047149b32da1635ae749f8eecd4c /tests
parent2a760aa7cee00829fe7b1649cad1efa5ddf8e259 (diff)
downloaddotty-4e34962fba727975c071d6288913d89b4692a08f.tar.gz
dotty-4e34962fba727975c071d6288913d89b4692a08f.tar.bz2
dotty-4e34962fba727975c071d6288913d89b4692a08f.zip
Commenting out unused alternative isSubType implementation.
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/test.scala14
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