Files
kotlin-fork/compiler/testData/diagnostics/tests/generics/varProjection/setterProjectedOutAssign.kt
T
2013-11-22 18:57:58 +04:00

13 lines
246 B
Kotlin

// !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_PARAMETER
// t is unused due to KT-4233
trait Tr<T> {
var v: T
}
fun test(t: Tr<*>) {
<!SETTER_PROJECTED_OUT!>t.v<!> = null!!
val v = TypeOf(t.v)
v: TypeOf<Any?>
}
class TypeOf<T>(t: T)