ansman
03/14/2024, 8:06 PMclass Super<T1, T2>
data class Child<T : Super<String, Child<T>>>(val foo: String)
fun foo(child: Child<*>) {
child.foo
}
This fails to compile with an error on child.foo
saying:
Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public final val foo: String defined in com.example
dmitriy.novozhilov
03/15/2024, 6:20 AMansman
03/15/2024, 12:55 PM