summaryrefslogtreecommitdiff
path: root/test/files/neg/t3118.scala
blob: 9be24c1ed499acf9f94ed4e559370cd54efac500 (plain) (blame)
1
2
3
4
5
6
7
8
class O1 {
  private[this] case class C()

  val x = new O1

  println(x.C())   // should not be accessible
  println(new x.C) // is correctly not accessible
}