More correct code transformations: do not perform formatter's job on yourself

This commit is contained in:
Valentin Kipyatkov
2014-01-23 16:57:56 +04:00
parent ab7d8a7734
commit 3028cec4cd
10 changed files with 58 additions and 22 deletions
@@ -0,0 +1,9 @@
fun foo() {
val (i :Int, s :String) = bar()
val h = {() :Unit -> bar() }
for (i :Int in collection) {
}
}
// SET_FALSE: SPACE_BEFORE_TYPE_COLON
// SET_TRUE: SPACE_AFTER_TYPE_COLON
@@ -0,0 +1,9 @@
fun foo() {
val (i: Int, s: String) = bar()
val h = {(): Unit -> bar() }
for (i: Int in collection) {
}
}
// SET_FALSE: SPACE_BEFORE_TYPE_COLON
// SET_TRUE: SPACE_AFTER_TYPE_COLON
+9
View File
@@ -0,0 +1,9 @@
fun foo() {
val (i:Int,s:String) = bar()
val h = {():Unit -> bar()}
for (i:Int in collection) {
}
}
// SET_FALSE: SPACE_BEFORE_TYPE_COLON
// SET_TRUE: SPACE_AFTER_TYPE_COLON