title: scala case class named parameters
body: <p>Is there (or will in the nearest feature) in scala possible to create case class with named parameters? I mean to construct case class object using named parameters in constructor. </p>
  
  <p>My case classes have a lot of fields. It is prone to error having constructors with a lot of not named parameters.</p>
  
  <p>I would like to get (at the moment not working example):</p>
  
  <pre><code>case class X(x0:String, x1:Int, x2:String)
  val x = X(x0="Xstring", x1=12, x2="x2String")
  </code></pre>
  
  <p>As workaround we could provide factory method like below excerpt shows, but this is ugly solution:</p>
  
  <pre><code>case class X(x0:String, x1:Int, x2:String)
  object X {
      private nullX = X(null, null, null)
      def createX = nullX.copy _
  }
  
  val x = X.createX(x0="Xstring", x1=12, x2="x2String")
  </code></pre>
  
  <p>Any clues ? :)</p>
  
  <p><strong>EDIT</strong>:
  This was bug in intellij idea scala plugin some old version. <strong>Plase don't vote down any more ;)</strong></p>