21f0557502
Now both of those classes implements one interface with `TypeProjection` property. That allows old captured type approximator use new captured types. That change fixes tests related to diagnostics: - SETTER_PROJECTED_OUT - DEBUG_INFO_UNRESOLVED_WITH_TARGET - UNRESOLVED_REFERENCE_WRONG_RECEIVER Also `typeProjection` property renamed to `projection` according to naming in NI.
10 lines
179 B
Kotlin
Vendored
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<*>?>() }
|
|
}
|