Unless I'm mistaken, that won't work with constructors.
c
cbruegg
01/22/2019, 11:29 AM
An option would be to create a pseudo-constructor function, either by naming a top-level function like the constructor or by declaring an invoke-operator on the companion object. Not very nice for visibility from Java though without adjustments.