Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/projectionsScope/kt8647.kt
T

10 lines
214 B
Kotlin
Vendored

// FIR_IDENTICAL
interface Subscriber<T>
interface Observable<T> {
fun subscribe(s: Subscriber<in T>)
}
fun foo(o: Observable<out CharSequence>, y: Subscriber<in CharSequence>) = o.subscribe(y) // type safe