From e7287ba8f4a39a467af985a299264e4ebd084efe Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Tue, 21 Aug 2012 15:08:04 +0400 Subject: [PATCH] KT-2242 formatting problems: function literal passed outside the parentheses - fix test data in affected tests #KT-2242 Fixed --- idea/testData/refactoring/introduceVariable/FunctionLiteral.kt | 2 +- .../introduceVariable/FunctionLiteralFromExpected.kt | 2 +- idea/testData/templates/closure.exp.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/testData/refactoring/introduceVariable/FunctionLiteral.kt b/idea/testData/refactoring/introduceVariable/FunctionLiteral.kt index d8e687f7f8f..60443bf7198 100644 --- a/idea/testData/refactoring/introduceVariable/FunctionLiteral.kt +++ b/idea/testData/refactoring/introduceVariable/FunctionLiteral.kt @@ -3,7 +3,7 @@ fun foo(c : Collection){ } /* fun foo(c : Collection){ - val function = {it; false} + val function = { it; false } c.filter(function) } */ \ No newline at end of file diff --git a/idea/testData/refactoring/introduceVariable/FunctionLiteralFromExpected.kt b/idea/testData/refactoring/introduceVariable/FunctionLiteralFromExpected.kt index 7b7b9066273..0ef532a7182 100644 --- a/idea/testData/refactoring/introduceVariable/FunctionLiteralFromExpected.kt +++ b/idea/testData/refactoring/introduceVariable/FunctionLiteralFromExpected.kt @@ -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) } */ \ No newline at end of file diff --git a/idea/testData/templates/closure.exp.kt b/idea/testData/templates/closure.exp.kt index bf00def3787..6df9e047149 100644 --- a/idea/testData/templates/closure.exp.kt +++ b/idea/testData/templates/closure.exp.kt @@ -1,3 +1,3 @@ fun main(args : Array) { - val someFun = {param -> param} + val someFun = { param -> param } }