More usable caret position

This commit is contained in:
Valentin Kipyatkov
2016-04-20 16:44:33 +03:00
parent db53794663
commit 345f2b8a52
32 changed files with 40 additions and 32 deletions
@@ -1,5 +1,5 @@
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'lastOrNull{}'"
fun foo(list: List<String>) {
<caret>val result: String? = list.lastOrNull { it.length > 0 }
val <caret>result: String? = list.lastOrNull { it.length > 0 }
}