Join Slack
Communities
Powered by
What you can do is have a method like this: `inlin...
# announcements
k
karelpeeters
09/10/2017, 11:28 AM
What you can do is have a method like this:
inline fun <T : Any> create(constructor: () -> T): T = constructor()
and then you can use it like this:
create(::MyClass)
.
Open in Slack
Previous
Next