Hello all. I'm trying to understand why it's givin...
# getting-started
r
Hello all. I'm trying to understand why it's giving error, and how to fix it
abstract class SomeClass {
abstract fun someFunction(someParameter: String) : List<String?>
}
suspend inline fun <reified T : SomeClass> otherFunction(): Return<T> {
val someAtt = T::someFunction("abc")
}
Copy code
error: 
left-hand side of callable referece cannot be a type parameter
r
You’re trying to call a member function of
SomeClass
without an instance of
SomeClass
.