19 lines
410 B
Kotlin
19 lines
410 B
Kotlin
package regressions
|
|
|
|
// TODO comment out the next line to reproduce KT-1617
|
|
//import kotlin.util.map
|
|
|
|
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")
|
|
}
|
|
} |