Formatter: left brace formatting in class/trait/class object/object/object literal declarations

This commit is contained in:
Pavel V. Talanov
2014-01-17 14:01:36 +04:00
parent e1dab0e1c7
commit 7afc9bc30d
10 changed files with 131 additions and 15 deletions
@@ -1,4 +1,4 @@
class C1 protected (val x: Any){}
class C1 protected (val x: Any) {}
fun f() {
val c = C1(12);
@@ -1,4 +1,4 @@
class <caret>C1{}
class <caret>C1 {}
fun f() {
val c = C1();
@@ -1,6 +1,6 @@
open class C1 protected (x3: ((Int) -> Int)?,
var _x2: Float,
val _x1: Int = 1){
val _x1: Int = 1) {
fun bar() {
val y1 = _x1;
val y2 = _x2;
@@ -1,4 +1,4 @@
open class C1 protected (<caret>val x1: Int = 1, var x2: Float, x3: ((Int) -> Int)?){
open class C1 protected (<caret>val x1: Int = 1, var x2: Float, x3: ((Int) -> Int)?) {
fun bar() {
val y1 = x1;
val y2 = x2;