7a2321460d
Previously, extract variable could act on e.g. 'break@outerLoop' and extract the label, leading into nonsensical 'val x = @outerLoop'. Prevent JetRefactoringUtil.selectExpression from returning label expressions to fix this. #KT-4515 Fixed
8 lines
162 B
Kotlin
8 lines
162 B
Kotlin
fun f() {
|
|
@loop while (true) {
|
|
break@lo<caret>op
|
|
}
|
|
}
|
|
// KT-4515: Extract variable can attempt to extract a label from a labelled statement.
|
|
/* */
|