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 1ff9c86083
commit ccb8c08684
10 changed files with 52 additions and 25 deletions
@@ -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()
}
}
+4 -1
View File
@@ -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
+4 -1
View File
@@ -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
@@ -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
}
}