Intentions: Convert function type parameter to receiver
#KT-14246 In Progress
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
fun foo(f: Int.(s: String) -> Boolean) = 1.f("2")
|
||||
|
||||
fun bar = foo { s -> s.length() > this }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun foo(f: (n: <spot>Int</spot>, s: String) -> Boolean) = f(1, "2")
|
||||
|
||||
fun bar = foo { n, s -> s.length() > n }
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts given parameter of a function type used in a function parameter to receiver
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user