Fix test and add special option for spacing around colon in type definitions

This commit is contained in:
Nikolay Krasko
2012-05-23 18:43:47 +04:00
parent 48533ca8d2
commit deb13344c0
2 changed files with 21 additions and 0 deletions
@@ -0,0 +1,9 @@
fun some(
a :Int,
b :String, c :Int,
d :String, e :Int
) {
}
// SET_FALSE: SPACE_BEFORE_TYPE_COLON
// SET_TRUE: SPACE_AFTER_TYPE_COLON
@@ -0,0 +1,12 @@
import java.util.ArrayList
import java.lang.Iterable
class Some: java.util.ArrayList<Int>() {
fun some<T: Iterable<Int>>(array: Array<String>): Int {
val test: Int = 12
return test
}
}
// SET_TRUE: SPACE_BEFORE_EXTEND_COLON
// SET_FALSE: SPACE_AFTER_EXTEND_COLON