Fix tests: "Placing function type parameters after the function name" error
This commit is contained in:
+1
-1
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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)
|
||||
}
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user