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

10 lines
208 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !CHECK_TYPE
interface A<T : A<T?>?> {
fun foo(): T?
}
fun testA(a: A<*>) {
a.foo() checkType { <!INAPPLICABLE_CANDIDATE!>_<!><A<*>?>() }
}