aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/scala/async/run/toughtype/ToughType.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/scala/async/run/toughtype/ToughType.scala')
-rw-r--r--src/test/scala/scala/async/run/toughtype/ToughType.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/scala/scala/async/run/toughtype/ToughType.scala b/src/test/scala/scala/async/run/toughtype/ToughType.scala
index 458157c..54a53c8 100644
--- a/src/test/scala/scala/async/run/toughtype/ToughType.scala
+++ b/src/test/scala/scala/async/run/toughtype/ToughType.scala
@@ -211,6 +211,22 @@ class ToughTypeSpec {
}(SomeExecutionContext)
}
}
+
+ }
+
+ @Test def ticket66Nothing() {
+ import scala.concurrent.Future
+ import scala.concurrent.ExecutionContext.Implicits.global
+ val e = new Exception()
+ val f: Future[Nothing] = Future.failed(e)
+ val f1 = async {
+ await(f)
+ }
+ try {
+ Await.result(f1, 5.seconds)
+ } catch {
+ case `e` =>
+ }
}
}