Fix wrong indentation in lambdas with body

This commit is contained in:
Vitaliy.Bibaev
2017-09-05 13:17:41 +03:00
parent 01c0e53106
commit b555bde184
2 changed files with 3 additions and 2 deletions
@@ -29,7 +29,7 @@ class JavaLambda(override val variableName: String, override val body: JavaLambd
private fun JavaLambdaBody.convert(indent: Int): String =
if (isExpression()) this.toCode(0)
else "{" +
else "{\n" +
this.toCode(indent + 1) +
"}".withIndent(indent)
}
@@ -1,3 +1,4 @@
y -> { y.method1();
y -> {
y.method1();
y.method2();
};