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,6 +1,6 @@
// "Create class 'Foo'" "true"
fun run<T>(f: () -> T) = f()
fun <T> run(f: () -> T) = f()
fun test() {
run { <caret>Foo() }
@@ -1,6 +1,6 @@
// "Create class 'Foo'" "true"
fun run<T>(f: () -> T) = f()
fun <T> run(f: () -> T) = f()
fun test() {
run { Foo() }
@@ -1,6 +1,6 @@
// "Create class 'Foo'" "true"
// ERROR: Unresolved reference: Foo
fun test<U>(u: U) {
fun <U> test(u: U) {
val a = J(u).Foo(u)
}
@@ -1,6 +1,6 @@
// "Create class 'Foo'" "true"
// ERROR: Unresolved reference: Foo
fun test<U>(u: U) {
fun <U> test(u: U) {
val a = J(u).<caret>Foo(u)
}
@@ -4,6 +4,6 @@ class A<T>(val n: T) {
}
fun test<U>(u: U) {
fun <U> test(u: U) {
val a = A(u).<caret>Foo(u)
}
@@ -7,6 +7,6 @@ class A<T>(val n: T) {
}
fun test<U>(u: U) {
fun <U> test(u: U) {
val a = A(u).Foo(u)
}