avoid unnecessary verbose type parameters now the type inferencer is better

This commit is contained in:
James Strachan
2012-08-17 09:44:52 +01:00
parent a4e80c7d5d
commit ecbd4daefb
10 changed files with 14 additions and 32 deletions
@@ -105,11 +105,8 @@ class OptionTest: TestCase() {
*/
val name = request.getParameter("name")
val upper = name.map<String, String>{ it.trim() }.filter{ it.length != 0 }.map<String, String>{ it.toUpperCase() }
val upper = name.map{ it.trim() }.filter{ it.length != 0 }.map{ it.toUpperCase() }
return upper ?: ""
// TODO when http://youtrack.jetbrains.com/issue/KT-1145 is fixed
// we can get rid of the unnecessary <String, String> on map
}
assertEquals("", foo(Request(null)))