Skip to content

Commit a0bdac2

Browse files
authored
Merge pull request scala#2283 from dotty-staging/test-deadlock
Add test from typelevel/scalacheck#290
2 parents 0303089 + bcb73f9 commit a0bdac2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/run/deadlock.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

tests/run/deadlock.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// from https://github.com/rickynils/scalacheck/issues/290
2+
import scala.concurrent._
3+
import scala.concurrent.duration._
4+
import java.util.concurrent.Executors
5+
6+
object Test {
7+
import ExecutionContext.Implicits.global
8+
val x = Await.result(Future(1), 1000.seconds)
9+
def main(args: Array[String]) = println(x)
10+
}
11+

0 commit comments

Comments
 (0)