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
+1 -1
View File
@@ -5,7 +5,7 @@ package b
interface A<T>
fun infer<T>(a: A<T>) : T {}
fun <T> infer(a: A<T>) : T {}
fun foo(nothing: Nothing?) {
val i = infer(nothing)
+3 -3
View File
@@ -4,14 +4,14 @@
package i
fun foo<R, T: List<R>>(r: R, list: T) {}
fun <R, T: List<R>> foo(r: R, list: T) {}
fun test1(i: Int, collection: Collection<Int>) {
foo(i, collection) //error
}
//--------------
fun bar<V : U, U>(v: V, u: MutableSet<U>) = u
fun <V : U, U> bar(v: V, u: MutableSet<U>) = u
fun test2(a: Any, s: MutableSet<String>) {
bar(a, s) //error
@@ -21,7 +21,7 @@ fun test2(a: Any, s: MutableSet<String>) {
interface A
class B
fun baz<T: R, R: B>(t: T, r: R) where T: A {
fun <T: R, R: B> baz(t: T, r: R) where T: A {
}