Mgj
08/14/2020, 9:03 AMclass MyClass {
suspend fun <T> doStuff(): T {
return myReified<T>()
}
}
suspend inline fun <reified T> myReified(): T
What is a good workaround?diesieben07
08/14/2020, 9:05 AMinline and the T needs to be reified itself.Mgj
08/14/2020, 9:05 AMdoStuff() to be public and access class members.
Public-API inline function cannot access non-public-APIdiesieben07
08/14/2020, 9:08 AMdiesieben07
08/14/2020, 9:08 AMdoStuffImpl can access privates, because its not inlinediesieben07
08/14/2020, 9:09 AMdoStuffImpl as @PublishedApi and internal if you don't want it called otherwiseMgj
08/14/2020, 9:10 AM