Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/projectionsScope/starNullabilityRecursive.kt
T
2019-05-29 10:53:07 +03:00

10 lines
179 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 { _<A<*>?>() }
}