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












                          
   
 
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();
  }
}