diagnostic tests changes after collections mapping
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user