Fix tests: "Placing function type parameters after the function name" error

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:31 +03:00
parent 3001af56c9
commit a3ff3ffc45
435 changed files with 550 additions and 569 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ data class Dat(val start: String, val end: String)
class Obj(val start: String, val end: String)
fun assertSomeNotEqual<T>(c: Iterable<T>) {
fun <T> assertSomeNotEqual(c: Iterable<T>) {
val it = c.iterator()
val first = it.next()
while (it.hasNext()) {
@@ -21,7 +21,7 @@ fun assertSomeNotEqual<T>(c: Iterable<T>) {
throw Exception("All elements are the same: $first")
}
fun assertAllEqual<T>(c: Iterable<out T>) {
fun <T> assertAllEqual(c: Iterable<out T>) {
val it = c.iterator()
val first = it.next()
while (it.hasNext()) {