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,4 +1,4 @@
fun foo<T: Any>(<caret>_x1: T? = null, _x2: Double?, _x3: ((T) -> T)?) {
fun <T: Any> foo(<caret>_x1: T? = null, _x2: Double?, _x3: ((T) -> T)?) {
foo(2, 3.5, null);
val y1 = _x1;
val y2 = _x2;
@@ -1,4 +1,4 @@
fun foo<T: Any>(<caret>x1: T? = null, x2: Double, x3: ((T) -> T)?) {
fun <T: Any> foo(<caret>x1: T? = null, x2: Double, x3: ((T) -> T)?) {
foo(2, 3.5, null);
val y1 = x1;
val y2 = x2;
@@ -1,7 +1,7 @@
class U<A>
interface T<A, B> {
fun foofoofoo<C>(a: List<C>, b: A?, c: U<B>): U<C>?
fun <C> foofoofoo(a: List<C>, b: A?, c: U<B>): U<C>?
}
abstract class T1<X, Y> : T<U<X>, U<Y>> {
@@ -17,7 +17,7 @@ abstract class T2<X> : T1<X, String>() {
}
class T3 : T2<Any>() {
override fun foofoofoo<D>(a: List<D>, b: U<Any>?, c: U<U<String>>): U<D>? {
override fun <D> foofoofoo(a: List<D>, b: U<Any>?, c: U<U<String>>): U<D>? {
throw UnsupportedOperationException()
}
}
@@ -1,7 +1,7 @@
class U<A>
interface T<A, B> {
fun <caret>foofoofoo<C>(a: A, b: B, c: C): Int
fun <C> <caret>foofoofoo(a: A, b: B, c: C): Int
}
abstract class T1<X, Y> : T<U<X>, U<Y>> {
@@ -17,7 +17,7 @@ abstract class T2<X> : T1<X, String>() {
}
class T3 : T2<Any>() {
override fun foofoofoo<D>(a: U<Any>, b: U<String>, c: D): Int {
override fun <D> foofoofoo(a: U<Any>, b: U<String>, c: D): Int {
throw UnsupportedOperationException()
}
}
@@ -4,7 +4,7 @@ interface A<D> {
public fun <caret>bar(receiverTypes: Collection<X>): Collection<D>
}
fun foo<D>(): A<D> {
fun <D> foo(): A<D> {
return object: A<D> {
override fun bar(receiverTypes: Collection<X>): Collection<D> {
throw UnsupportedOperationException()
@@ -4,7 +4,7 @@ interface A<D> {
public fun <caret>foo(receiverTypes: Collection<X>): Collection<D>
}
fun foo<D>(): A<D> {
fun <D> foo(): A<D> {
return object: A<D> {
override fun foo(receiverTypes: Collection<X>): Collection<D> {
throw UnsupportedOperationException()