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