Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions tests/run/i7960.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._
import scala.concurrent.{Await, Future}

class A() {
val bc = B.C(50)
}

object A {
Thread.sleep(100L)

val a = new A()
}


object B {
Thread.sleep(100L)

case class C(a: Int)

val a: A = A.a
}

object Test {
def main(args: Array[String]): Unit = {
Await.result(Future.sequence(Seq(
Future { A.a },
Future { B.a },
)), 1.seconds)
}
}