summaryrefslogblamecommitdiff
path: root/test/files/neg/t3118.scala
blob: 75f3b8f50cd369bb2369c56d357dbbb1412b5f41 (plain) (tree)
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
}