Supported moving a labeled lambda outside parentheses

This commit is contained in:
Svetlana Isakova
2014-05-29 17:17:55 +04:00
parent 41df522234
commit beb7dc4524
4 changed files with 33 additions and 15 deletions
@@ -0,0 +1,8 @@
// IS_APPLICABLE: true
fun foo() {
bar<caret>(2, @l{ it })
}
fun bar(a: Int, b: (Int) -> Int) {
b(a)
}
@@ -0,0 +1,8 @@
// IS_APPLICABLE: true
fun foo() {
bar(2) @l{ it }
}
fun bar(a: Int, b: (Int) -> Int) {
b(a)
}