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














                          
import scala._;

module test {

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