summaryrefslogblamecommitdiff
path: root/test/files/pos/lambdalift.scala
blob: ae5799a6f85b52d85c8e237aee0f4eb2f4ef5cf6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                          
import scala._;

object test {

  def f(x: Int) = {
    def g() = h();
    def h() = x;
    g();
    class inner() {
      def g() = h();
      def h() = x;
    }
    g() + new inner().g();
  }
}