I wish I could call the primary constructor in the...
# language-proposals
e
I wish I could call the primary constructor in the secondary constructor body. I can overcome this by a top or static function, but I'd like to have it compact in the constructor body
d
Even Java doesn't allow this sadly. If your primary ctor has only on argument you could do
constructor() : this(run { ... })
.
e
so, it's a jvm limit?
d
I believe so.