Fix tests: "Placing function type parameters after the function name" error
This commit is contained in:
+1
-1
@@ -2,6 +2,6 @@
|
||||
|
||||
class A<T>(val n: T)
|
||||
|
||||
fun test<U>(u: U) {
|
||||
fun <U> test(u: U) {
|
||||
val a: A<U> = A(u).<caret>foo(u)
|
||||
}
|
||||
Vendored
+1
-1
@@ -6,6 +6,6 @@ class A<T>(val n: T) {
|
||||
}
|
||||
}
|
||||
|
||||
fun test<U>(u: U) {
|
||||
fun <U> test(u: U) {
|
||||
val a: A<U> = A(u).foo(u)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Create function '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 function 'foo'" "true"
|
||||
|
||||
fun run<T>(f: () -> T) = f()
|
||||
fun <T> run(f: () -> T) = f()
|
||||
|
||||
fun test() {
|
||||
run { foo() }
|
||||
|
||||
Reference in New Issue
Block a user