blob: 6821ad768be68ca5f58c2febb89e5ad3bf748cbd (
plain) (
tree)
|
|
object companions {
def foo() = {
class C {
println(C.p)
private val q = 2
}
object C {
private val p = 1
println(new C().q)
}
}
}
object companions2 {
def foo() = {
{
class C {
println(C.p)
}
object C {
private val p = 1
}
}
}
}
|