Implement intention to remove labeled return from last lambda expression

So #KT-20439 Fixed
This commit is contained in:
shiraji
2018-01-09 05:49:59 +03:00
committed by Mikhail Glukhikh
parent 35ce30aedc
commit 769e28519e
17 changed files with 201 additions and 0 deletions
@@ -0,0 +1,5 @@
fun foo() {
listOf(1,2,3).find {
true
}
}
@@ -0,0 +1,5 @@
fun foo() {
listOf(1,2,3).find {
<spot>return@find</spot> true
}
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention removes labeled return from last expression in a lambda.
</body>
</html>