Elvis operator supported for all cases of find

This commit is contained in:
Valentin Kipyatkov
2016-04-06 13:07:45 +03:00
parent 79800492a9
commit bd6b38962d
5 changed files with 50 additions and 16 deletions
@@ -0,0 +1,12 @@
// WITH_RUNTIME
fun foo(list: List<String>) {
var result = ""
<caret>for (s in list) {
if (s.length > 0) {
result = bar(s)
break
}
}
}
fun bar(s: String): String = s