Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/projectionsScope/inValueParameter.kt
T
2017-11-29 02:54:26 +03:00

10 lines
215 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
interface A<T>
interface B<E> {
fun foo(x: A<in E>)
}
fun foo(x: B<in CharSequence>, y: A<CharSequence>) {
x.foo(<!NI;TYPE_MISMATCH, OI;TYPE_MISMATCH_DUE_TO_TYPE_PROJECTIONS!>y<!>)
}