avoid unnecessary verbose type parameters now the type inferencer is better
This commit is contained in:
@@ -12,7 +12,7 @@ class Kt1617Test: TestCase() {
|
||||
fun testMapFunction() {
|
||||
val coll: Collection<String> = arrayList("foo", "bar")
|
||||
|
||||
val files = coll.map<String, File>{ File(it) }
|
||||
val files = coll.map{ File(it) }
|
||||
|
||||
println("Found files: $files")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user