Fix tests: "Placing function type parameters after the function name" error
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun doSomething<T>(a: T) {}
|
||||
fun <T> doSomething(a: T) {}
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
fun doSomething<T>(a: T) {}
|
||||
fun <T> doSomething(a: T) {}
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke<T>(a: Int) {}
|
||||
fun <T> invoke(a: Int) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke<Int>(0)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke<T>(a: Int) {}
|
||||
fun <T> invoke(a: Int) {}
|
||||
}
|
||||
val test = Test()
|
||||
test<Int>(0)
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke<T>(fn: () -> T) {}
|
||||
fun <T> invoke(fn: () -> T) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke<Int> { 0 }
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke<T>(fn: () -> T) {}
|
||||
fun <T> invoke(fn: () -> T) {}
|
||||
}
|
||||
val test = Test()
|
||||
test<Int> { 0 }
|
||||
|
||||
Reference in New Issue
Block a user