I spent all this time putting together a factory method in my companion object like so:
class Stuff(val a: Int, val b: Long) { this() = this(0,0L) }
object Stuff {
def apply(a:Int, b:Int) = new Stuff(a, b.toLong)
}
But when just when I thought I was killing it I then went to compile and this didn't work:
val widget = new Stuff(1,2)
What is going on!? I just made this!? Help!!!