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
7 lines
174 B
Kotlin
Vendored
7 lines
174 B
Kotlin
Vendored
class Foo() {
|
|
val s = this@F<selection>o</selection>o.toString()
|
|
}
|
|
|
|
// KT-4515: Extract variable can attempt to extract a label from a labelled statement.
|
|
/* this@Foo */
|