Implement intention to add labeled return to last expression in a lambda

So #KT-20439 Fixed
This commit is contained in:
shiraji
2018-01-07 22:05:44 +03:00
committed by Mikhail Glukhikh
parent 769e28519e
commit 59f6dc07cf
26 changed files with 311 additions and 11 deletions
@@ -0,0 +1,5 @@
fun foo() {
listOf(1,2,3).find {
<spot>return@find</spot> true
}
}
@@ -0,0 +1,5 @@
fun foo() {
listOf(1,2,3).find {
true
}
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention adds labeled return to last expression in a lambda.
</body>
</html>