Add intention to convert lambda to anonymous function #KT-7710 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8ef4b9a8e1
commit
8a20d1bf01
@@ -0,0 +1,8 @@
|
||||
fun foo(f: (Int) -> String) {}
|
||||
|
||||
fun test() {
|
||||
foo <caret>{
|
||||
val b = it == 1
|
||||
if (b) "1" else "2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user