Rename: fix renaming of label by label reference in loop
#KT-29796 Fixed
This commit is contained in:
committed by
Alexander Podkhalyuzin
parent
76bdfddfea
commit
b4789b95ef
+6
@@ -0,0 +1,6 @@
|
||||
fun test() {
|
||||
bar@ for (n in 1..10) {
|
||||
if (n == 5) continue@bar
|
||||
if (n > 8) break@bar
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun test() {
|
||||
foo@ for (n in 1..10) {
|
||||
if (n == 5) continue@/*rename*/foo
|
||||
if (n > 8) break@foo
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "AUTO_DETECT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "bar"
|
||||
}
|
||||
Reference in New Issue
Block a user