Groupped tests by folders
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'firstOrNull{}'"
|
||||
// IS_APPLICABLE_2: false
|
||||
fun foo(list: List<String>) {
|
||||
val <caret>result = list
|
||||
.firstOrNull { it.length > 0 }
|
||||
?.let { bar(it) }
|
||||
?: ""
|
||||
}
|
||||
|
||||
fun bar(s: String): String = s
|
||||
Reference in New Issue
Block a user