Because it's the name of the companion object that's generated with the case class. In fact the syntax with parentheses only works by desugaring to a call to the companion's apply method
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.