Fix tests: "Placing function type parameters after the function name" error
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
fun applyTwice<A>(f: (A) -> A, x: A) = f(f(x))
|
||||
fun <A> applyTwice(f: (A) -> A, x: A) = f(f(x))
|
||||
val x = applyTwice({ i<caret>t + 1 }, 40)
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
fun applyTwice<A>(f: (A) -> A, x: A) = f(f(x))
|
||||
fun <A> applyTwice(f: (A) -> A, x: A) = f(f(x))
|
||||
val x = applyTwice({ it -> <caret>it + 1 }, 40)
|
||||
|
||||
Reference in New Issue
Block a user