enighma
11/01/2024, 8:50 PMMyClass<T : MyClass<*>>(
listener: MyListener<T>
)
Essentially my class has a listener which has a callback with the class. It's not beautiful, but it's what I have to work with atm.Youssef Shoaib [MOD]
11/01/2024, 8:53 PMMyClass<T : MyClass<T>>
solve the issue? It should because that encoding of self types is very commonenighma
11/01/2024, 9:07 PMinterface Base
MyClass<T: Base>:Base (
listener: MyListener<T>
)
Youssef Shoaib [MOD]
11/01/2024, 9:14 PMinterface MyListener<T: MyClass<T>>
abstract class MyClass<T : MyClass<T>>(
val listener: MyListener<T>
)
but glad you found a solution regardless!Youssef Shoaib [MOD]
11/01/2024, 9:16 PMT: MyClass<T>
works, but T: MyClass<*>
doesn'tenighma
11/01/2024, 9:36 PMenighma
11/01/2024, 9:41 PM