aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/delambdafy-lambdalift.scala
blob: e9da24ef375927b9c2f0bcafe82895a54946b518 (plain) (blame)
1
2
3
4
5
6
7
8
class LambdaLift {

  def enclosingMethod(capturedArg: Int): Unit = {
    def innerMethod(x: Int): Int = x + capturedArg
    val f = (y: Int) => innerMethod(y)
  }

}