re KT-6728 - why not just use function and pass a ...
# language-proposals
n
re KT-6728 - why not just use function and pass a reference to the constructor you want to call? E.g.
Copy code
class Banana {
}

val factory : () -> Banana = ::Banana
val newBanana = factory()