diesieben07
inline fun <reified T : Any> register(noinline factory: () -> T) { // here you can use T::class as the class and factory as theh factory }