Expand selection for labeled return #KT-26987 Fixed
This commit is contained in:
committed by
Alexander Podkhalyuzin
parent
790c5632ea
commit
ecba862dc9
@@ -0,0 +1,8 @@
|
||||
fun test(list: List<Int>) {
|
||||
list.mapNotNull {
|
||||
if (it == 0) {
|
||||
<caret>return@mapNotNull null
|
||||
}
|
||||
it
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun test(list: List<Int>) {
|
||||
list.mapNotNull {
|
||||
if (it == 0) {
|
||||
<selection><caret>return</selection>@mapNotNull null
|
||||
}
|
||||
it
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun test(list: List<Int>) {
|
||||
list.mapNotNull {
|
||||
if (it == 0) {
|
||||
<selection><caret>return@mapNotNull</selection> null
|
||||
}
|
||||
it
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun test(list: List<Int>) {
|
||||
list.mapNotNull {
|
||||
if (it == 0) {
|
||||
<selection><caret>return@mapNotNull null</selection>
|
||||
}
|
||||
it
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user