blob: 0431c18ce7501579c0d89da1fd4961348de9c58f (
plain) (
tree)
|
|
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
}
}
class Outer3Neg {
def meth: Unit = {
class Inner {
private val x: Int = 1
def foo: x.type = x // error
}
}
}
|