Fix test and add special option for spacing around colon in type definitions
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user