Supported "lastOrNull" and "any" without break in the loop

This commit is contained in:
Valentin Kipyatkov
2016-04-06 11:26:02 +03:00
parent 0243efd8b5
commit c0f3ab59ab
7 changed files with 46 additions and 7 deletions
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun foo(list: List<String>) {
<caret>val result: String? = list.lastOrNull { it.length > 0 }
}