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,7 +4,7 @@ package kotlin.util
import java.util.*
fun <T, U: Collection<in T>> Iterator<T>.to(container: U) : U {
fun <T, U: MutableCollection<in T>> Iterator<T>.to(container: U) : U {
while(hasNext())
container.add(next())
return container