Hello, I have a question about generics. This code...
# announcements
j
Hello, I have a question about generics. This code doesn't compile:
Copy code
interface Test<out T> {
    fun test1(): T
    fun test2(provider: () -> T): T
}
Because T occurs in a "in" position in function "test2"... Is there any syntax to make this compile ? Obviously I can remove the "out" to have <T> but it's very handy to me to have it ­čśĽ