I need to use a super public inline method in a su...
# getting-started
e
I need to use a super public inline method in a subclass, but this is forbidden:
Accessing super members from public-API inline function is deprecated
Which workarounds are available? I'd need to call the following
Copy code
class Texture1d : Texture {
   inline fun <reified T> load(..): T = super.load<T>(..) // error
e
super calls can only be made by member functions within the subclass. this is a JVM limitation, what do you expect Kotlin to do?
e
it was working fine before 1.6
e
https://youtrack.jetbrains.com/issue/KT-45379/Forbid-super-calls-from-public-abi-inline-functions it used to go through a generated synthetic accessor but was deprecated for a full cycle before 1.6
e
I read that thousand times, they apparently offer a replacement, but I think it doesnt suit my case of inline + reified