aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/scala/async/run/toughtype/ToughType.scala
diff options
context:
space:
mode:
authorNthPortal <nthportal@gmail.com>2018-02-21 22:24:51 -0500
committerNthPortal <nthportal@gmail.com>2018-02-27 00:08:53 -0500
commit58e7e33ea3d0b2841c610fdf218da0d0fcc53f3a (patch)
treeffc65617f3a92c7bd251b5f441de4e598d52038b /src/test/scala/scala/async/run/toughtype/ToughType.scala
parente5cde43baaf34b5479314b7a0904a95a255d3846 (diff)
downloadscala-async-58e7e33ea3d0b2841c610fdf218da0d0fcc53f3a.tar.gz
scala-async-58e7e33ea3d0b2841c610fdf218da0d0fcc53f3a.tar.bz2
scala-async-58e7e33ea3d0b2841c610fdf218da0d0fcc53f3a.zip
Remove uses of deprecated Future APIs
Diffstat (limited to 'src/test/scala/scala/async/run/toughtype/ToughType.scala')
-rw-r--r--src/test/scala/scala/async/run/toughtype/ToughType.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/scala/scala/async/run/toughtype/ToughType.scala b/src/test/scala/scala/async/run/toughtype/ToughType.scala
index 2bf912b..50c6300 100644
--- a/src/test/scala/scala/async/run/toughtype/ToughType.scala
+++ b/src/test/scala/scala/async/run/toughtype/ToughType.scala
@@ -21,8 +21,8 @@ object ToughTypeObject {
class Inner
def m2 = async[(List[_], ToughTypeObject.Inner)] {
- val y = await(future[List[_]](Nil))
- val z = await(future[Inner](new Inner))
+ val y = await(Future[List[_]](Nil))
+ val z = await(Future[Inner](new Inner))
(y, z)
}
}
@@ -86,11 +86,11 @@ class ToughTypeSpec {
def m3 = async {
val p: List[Option[_]] = conjure[List[Option[_]]]
- await(future(1))
+ await(Future(1))
}
def m4 = async {
- await(future[List[_]](Nil))
+ await(Future[List[_]](Nil))
}
}
@@ -153,7 +153,7 @@ class ToughTypeSpec {
// Turns out the behaviour stems from `thisMethodType` in `Namers`, which treats type parameter skolem symbols.
@Test def nestedMethodWithInconsistencyTreeAndInfoParamSymbols() {
import language.{reflectiveCalls, postfixOps}
- import scala.concurrent.{Future, ExecutionContext, future, Await}
+ import scala.concurrent.{Future, ExecutionContext, Await}
import scala.concurrent.duration._
import scala.async.Async.{async, await}
import scala.async.internal.AsyncId