Fix test and add special option for spacing around colon in type definitions
This commit is contained in:
@@ -6,8 +6,8 @@ trait Trait {
|
||||
|
||||
class TraitImpl : Trait {
|
||||
|
||||
override fun <A, B : Runnable, E : Map.Entry<A, B>> foo()
|
||||
where B : Cloneable, B : Comparable<B> {
|
||||
override fun <A, B: Runnable, E: Map.Entry<A, B>> foo()
|
||||
where B: Cloneable, B: Comparable<B> {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -3,4 +3,7 @@ a: Int,
|
||||
b: String, c: Int,
|
||||
d: String, e: Int
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_TYPE_COLON
|
||||
// SET_TRUE: SPACE_AFTER_TYPE_COLON
|
||||
@@ -3,4 +3,7 @@ fun some(
|
||||
b: String, c: Int,
|
||||
d: String, e: Int
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_BEFORE_TYPE_COLON
|
||||
// SET_TRUE: SPACE_AFTER_TYPE_COLON
|
||||
+4
-1
@@ -6,4 +6,7 @@ class Some :java.util.ArrayList<Int>() {
|
||||
val test:Int = 12
|
||||
return test
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// SET_TRUE: SPACE_BEFORE_EXTEND_COLON
|
||||
// SET_FALSE: SPACE_AFTER_EXTEND_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
|
||||
@@ -1,9 +0,0 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user