Intentions: Convert function type parameter to receiver

#KT-14246 In Progress
This commit is contained in:
Alexey Sedunov
2016-11-29 17:37:39 +03:00
parent 9cadfd01ae
commit d4ed2d2022
43 changed files with 1066 additions and 16 deletions
@@ -0,0 +1,3 @@
fun foo(f: Int.(s: String) -> Boolean) = 1.f("2")
fun bar = foo { s -> s.length() > this }
@@ -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 }
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts given parameter of a function type used in a function parameter to receiver
</body>
</html>