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.
14 lines
308 B
Kotlin
Vendored
14 lines
308 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_PARAMETER
|
|
// !CHECK_TYPE
|
|
// !WITH_NEW_INFERENCE
|
|
// t is unused due to KT-4233
|
|
interface Tr<T> {
|
|
var v: T
|
|
}
|
|
|
|
fun test(t: Tr<*>) {
|
|
t.v = null!!
|
|
<!SETTER_PROJECTED_OUT!>t.v<!> = ""
|
|
<!SETTER_PROJECTED_OUT!>t.v<!> = null
|
|
t.v checkType { _<Any?>() }
|
|
} |