I faced the following definition in some source code:
case class Task(uuid: String = java.util.UUID.randomUUID().toString, n: Int)
Here the first argument declared with default value, but I don't understand how to create instance with this default value.
If I can not pass the first argument like Task(1) then I certainly get compilation error.
However the following change works fine:
case class Task(n: Int, uuid: String = java.util.UUID.randomUUID().toString)
But here, as showed in the definition, uuid is a first argument.