Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/varProjection/setterNotProjectedOutAssign.kt
T
Mikhail Zarechenskiy 787a8bb9bd Revert "[NI] Disable capturing/approximation type in TypeSubstitutor with enabled NI"
This reverts commit 7c4101e21c.

 #KT-31866 Fixed
 #KT-31868 Fixed
 #EA-125401 Fixed
 #KT-25290 Open
2019-06-07 12:31:38 +03:00

10 lines
170 B
Kotlin
Vendored

// !CHECK_TYPE
// !WITH_NEW_INFERENCE
interface Tr<T> {
var v: Tr<T>
}
fun test(t: Tr<*>) {
<!SETTER_PROJECTED_OUT!>t.v<!> = t
t.v checkType { _<Tr<*>>() }
}