Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/projectionsScope/starNullabilityRecursive.kt
T
2020-09-14 17:56:39 +03:00

11 lines
196 B
Kotlin
Vendored

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