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>+ 2
|
||||
}
|
||||
+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) + 2
|
||||
}
|
||||
+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() }
|
||||
|
||||
Vendored
+1
-1
@@ -3,6 +3,6 @@
|
||||
class A<T>(val n: T)
|
||||
class B<T>(val m: T)
|
||||
|
||||
fun test<U, V>(u: U): B<V> {
|
||||
fun <U, V> test(u: U): B<V> {
|
||||
return A(u)<caret>(u, "u")
|
||||
}
|
||||
idea/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserTypeWithTypeParams.kt.after
Vendored
+1
-1
@@ -8,6 +8,6 @@ class A<T>(val n: T) {
|
||||
|
||||
class B<T>(val m: T)
|
||||
|
||||
fun test<U, V>(u: U): B<V> {
|
||||
fun <U, V> test(u: U): B<V> {
|
||||
return A(u)(u, "u")
|
||||
}
|
||||
+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> = <caret>-A(u)
|
||||
}
|
||||
+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)
|
||||
}
|
||||
Reference in New Issue
Block a user