aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3020.scala
blob: 016563e27fb8694b30d8172b231b78db36834977 (plain) (blame)
1
2
3
4
5
6
7
8
9
object Test {
  def main(args: Array[String]): Unit = {
    var x = true

    ( { if (x) new scala.util.Random() } .asInstanceOf[Runnable] )
  }
}