KT-2242 formatting problems: function literal passed outside the parentheses - fix test data in affected tests
#KT-2242 Fixed
This commit is contained in:
@@ -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,3 +1,3 @@
|
||||
fun main(args : Array<String>) {
|
||||
val someFun = {param -> param}<caret>
|
||||
val someFun = { param -> param }<caret>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user