aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/i1992.scala
blob: 818b46771fe876e47d857eaaff79f71a4a0d6a54 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                   
object Test {
  def main(args: Array[String]) = {
    val x: Int => Unit =
      y => println(x) // error: `x` is a forward reference
    implicit val z: String => Unit =
      y => println(implicitly[String => Unit]) // error: `z` is a forward reference
  }
}