Add intention to convert lambda to anonymous function #KT-7710 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-05-07 07:30:50 +03:00
committed by Mikhail Glukhikh
parent 8ef4b9a8e1
commit 8a20d1bf01
46 changed files with 437 additions and 0 deletions
@@ -0,0 +1,7 @@
fun foo(f: () -> Int) {
f()
}
fun main(args: String) {
foo(fun(): Int { return 1 })
}
@@ -0,0 +1,7 @@
fun foo(f: () -> Int) {
f()
}
fun main(args: String) {
foo { 1 }
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts a lambda expression into a call of an anonymous function.
</body>
</html>