Convrt anonymous function to lambda: fix incorrectly conversion

#KT-28618
This commit is contained in:
Toshiaki Kameyama
2018-12-05 21:17:39 +09:00
committed by Mikhail Glukhikh
parent f6323cdee4
commit 9ee9965c7a
4 changed files with 24 additions and 7 deletions
@@ -0,0 +1,6 @@
fun foo(f: (Int) -> Boolean) {
f(1)
}
fun test() {
foo(<caret>fun(i: Int): Boolean {return i > 0 })
}
@@ -0,0 +1,6 @@
fun foo(f: (Int) -> Boolean) {
f(1)
}
fun test() {
foo { i -> i > 0 }
}