diagnostic tests changes after collections mapping

This commit is contained in:
Svetlana Isakova
2012-09-04 16:51:28 +04:00
parent bab20717ee
commit 7c828b9ff7
52 changed files with 39 additions and 104 deletions
@@ -4,14 +4,14 @@ package kt469
//KT-512 plusAssign() : Unit does not work properly
import java.util.*
fun bar(list : List<Int>) {
fun bar(list : MutableList<Int>) {
for (i in 1..10) {
list += i // error
}
System.out.println(list)
}
fun <T> List<T>.plusAssign(t : T) {
fun <T> MutableList<T>.plusAssign(t : T) {
add(t)
}