If necessary, add parameter types while inlining lambda

This commit is contained in:
Mikhail Glukhikh
2017-04-11 16:03:31 +03:00
parent 666133beee
commit 6453e10d44
5 changed files with 92 additions and 17 deletions
@@ -0,0 +1,4 @@
fun foo() {
fun bar(): (Int) -> Int = { it }
val b = <caret>bar()
}
@@ -0,0 +1,3 @@
fun foo() {
val b = { it: Int -> it }
}