Today I encountered a strange problem with case class constructors. I wanted to make a constructor private and it seems that it isn't problem. So I've tried it in one of my projects and it works. But in another project I can invoke private constructor and it compiles. I thought it is something with my ide, so I made a standalone class and compile it with scalac. And it compiles. Here is the code:

```
package com.test

object Main {

  def main(args: Array[String]) {
    val bar = Bar("12345")
//    bar.doStuff()
    println(bar)
  }
}

case class Bar private(foo: String){
  private def doStuff():Unit = println("stuff")
}

```

The funny thing is that if I uncomment bar.doStuff() it won't compile. So I assume private works in this case, but somehow doesn't work for constructor. What am I doing wrong?
Scalac is 2.11.8