Don't indent { for functions on new lines

This commit is contained in:
Nikolay Krasko
2012-09-17 12:42:03 +04:00
parent 9481862550
commit e29182b2fb
4 changed files with 11 additions and 0 deletions
@@ -324,6 +324,7 @@ public class JetBlock extends AbstractBlock {
ASTIndentStrategy.forNode("Indent for parts")
.in(PROPERTY, FUN)
.notForType(BLOCK)
.set(Indent.getContinuationWithoutFirstIndent()),
};
@@ -0,0 +1,3 @@
fun test()
{
}
@@ -0,0 +1,3 @@
fun test()
{
}
@@ -60,6 +60,10 @@ public class JetFormatterTest extends AbstractJetFormatterTest {
doTest();
}
public void testFunctionWithNewLineBrace() throws Exception {
doTest();
}
public void testGetterAndSetter() throws Exception {
doTest();
}