KT-2242 formatting problems: function literal passed outside the parentheses - fix test data in affected tests

#KT-2242 Fixed
This commit is contained in:
Nikolay Krasko
2012-08-21 15:08:04 +04:00
parent 0e4b59cc28
commit e7287ba8f4
3 changed files with 3 additions and 3 deletions
@@ -3,7 +3,7 @@ fun foo(c : Collection<String>){
}
/*
fun foo(c : Collection<String>){
val function = {it; false}
val function = { it; false }
c.filter(function)
}
*/
@@ -11,7 +11,7 @@ class A {
}
fun apply(x: (A) -> Int) = 2
fun test() {
val function: (A) -> Int = {it.foo()}
val function: (A) -> Int = { it.foo() }
apply(function)
}
*/
+1 -1
View File
@@ -1,3 +1,3 @@
fun main(args : Array<String>) {
val someFun = {param -> param}<caret>
val someFun = { param -> param }<caret>
}