aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/leaks.scala
blob: bb81d8cd28c643c5ca5029b5e9ab004f0e1554c5 (plain) (blame)
1
2
3
4
5
6
7
class Outer {
  private val x: Int = 1

  class Inner {
    def foo: x.type = x // error: non-private method foo refers to private value x in its type signature
  }
}