Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 437 Bytes
package regressions
// TODO comment out the next line to reproduce KT-1617
import kotlin.util.map
import kotlin.util.arrayList
import java.util.Collection
import java.io.File
import junit.framework.TestCase
class Kt1617Test: TestCase() {
fun testMapFunction() {
val coll: Collection<String> = arrayList("foo", "bar")
val files = coll.map<String, File>{ File(it) }
println("Found files: $files")
}
}
Something went wrong with that request. Please try again.