Make "Specify explicit lambda signature" available on whole lambda

So #KT-22492 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-02-09 09:48:21 +03:00
committed by Mikhail Glukhikh
parent 059a797e10
commit 5499078fcc
6 changed files with 25 additions and 29 deletions
@@ -0,0 +1,4 @@
fun foo(f: (String) -> Int) {}
fun test() {
foo { it.length <caret>}
}
@@ -0,0 +1,4 @@
fun foo(f: (String) -> Int) {}
fun test() {
foo { it: String -> it.length <caret>}
}
@@ -1,4 +0,0 @@
// IS_APPLICABLE: false
fun main() {
val sum : (Int, Int) -> Int = { x, y -> <caret>x + y }
}