KT-4198 On covariant projection, do not throw whole var's away
#KT-4198 Fixed
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
trait Tr<T> {
|
||||
var v: T
|
||||
}
|
||||
|
||||
fun test(t: Tr<out String>) {
|
||||
<!SETTER_PROJECTED_OUT!>t.v<!> += null!!
|
||||
}
|
||||
Reference in New Issue
Block a user