Add "Remove redundant label" quick fix for REDUNDANT_LABEL_WARNING

#KT-26431 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-09-11 00:35:43 +09:00
committed by Dmitry Gridin
parent 18df5d9db0
commit b2d2165342
8 changed files with 96 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
// "Remove redundant label" "true"
fun foo() {
<caret>L1@ val x = L2@ bar()
}
fun bar() {}
@@ -0,0 +1,6 @@
// "Remove redundant label" "true"
fun foo() {
val x = L2@ bar()
}
fun bar() {}
@@ -0,0 +1,6 @@
// "Remove redundant label" "true"
fun foo() {
L1@ val x = L2@<caret> bar()
}
fun bar() {}
@@ -0,0 +1,6 @@
// "Remove redundant label" "true"
fun foo() {
L1@ val x = bar()
}
fun bar() {}