Slackbot
08/04/2023, 6:12 PMChris Lee
08/04/2023, 6:13 PMKelvin Chung
08/04/2023, 6:17 PMFoo (hence why objects and providers would be deliberately public). The fear is that calling this inline function from a and from b might have small differences if objects and providers were different in each, all other things being equal.Chris Lee
08/04/2023, 6:18 PMChris Lee
08/04/2023, 6:19 PMChris Lee
08/04/2023, 6:21 PMpublic inline fun <reified T : PreReleaseHook> hook(vararg parameters: Any) {
hook(T::class, *parameters)
}
public fun <T : PreReleaseHook> hook(type: KClass<T>, vararg parameters: Any) {
// do stuff here
}