aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1664.scala
blob: 39d8d606dc1cbca8b083d3454d3cc69e59af5d7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
object test {
  def f[a](x: a) = {
    def print = x
    class A {
      def f() = {
        class B { def h = print }
        new B
      }
      f()
    }
  }
}