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
















                                                  
import scala._;

object test {

  def f[a <: java.lang.Object](x: a) = {
    def print() = java.lang.System.out.println(x);
    class A() {
      def g() = {
	class B() {
	  def h() = print()
	}
	new B().h()
      }
    }
    new A().g()
  }
}