Intentions: Convert function type receiver to parameter

#KT-14246 Fixed
This commit is contained in:
Alexey Sedunov
2016-12-07 14:39:19 +03:00
parent d4ed2d2022
commit 215d8b1e1a
25 changed files with 623 additions and 17 deletions
@@ -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 }
@@ -0,0 +1,3 @@
fun foo(f: <spot>Int</spot>.(s: String) -> Boolean) = 1.f("2")
fun bar = foo { s -> s.length() > this }
@@ -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>