elect
09/07/2021, 4:04 PMAccessing super members from public-API inline function is deprecatedwhy?
Alexey Belkov [JB]
09/08/2021, 7:54 AMelect
09/08/2021, 7:56 AMAlexey Belkov [JB]
09/08/2021, 8:53 AMelect
09/08/2021, 9:57 AMclass Texture1d : Texture {
inline fun <reified T> load(..): T =
I need inline
+ reified
to comfortably pass down T
, what possibilities do I have?Alexey Belkov [JB]
11/02/2022, 6:06 AMelect
11/02/2022, 8:34 AMsuper
build
, you'll get all the error about the super membersAlexey Belkov [JB]
11/02/2022, 9:34 AMIn order to get the similar behavior, the super call could be extracted to a separate function (having public visibility or internal visibility with @PublishedApi annotation).
elect
11/02/2022, 9:34 AMinline fun <reified T> load(..): T = super.load<T>(..)
how can be this extracted exactly?companion object {
@JvmStatic
inline fun <reified T> load(instance: Texture1d): T = instance.load<T>(Vec1i(), 0)
}
problem persistsAlexey Belkov [JB]
11/02/2022, 9:50 AMelect
11/02/2022, 10:15 AM@PublishedApi internal
can't help me