Replace deprecated annotations with modifiers in testData
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ class A @Ann(1)private constructor(x: Int) {
|
||||
inner class B() // do not insert here
|
||||
inner class C protected constructor() {
|
||||
fun foo() {
|
||||
@data class Local private constructor()
|
||||
data class Local private constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -9,7 +9,7 @@ class A @Ann(1)<caret>private (x: Int) {
|
||||
inner class B() // do not insert here
|
||||
inner class C protected () {
|
||||
fun foo() {
|
||||
@data class Local private()
|
||||
data class Local private()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+6
-4
@@ -1,7 +1,7 @@
|
||||
// "Update obsolete label syntax in whole project" "true"
|
||||
// ERROR: Unresolved reference: @abc
|
||||
// ERROR: Unresolved reference: @ann
|
||||
// ERROR: Unresolved reference: @cde
|
||||
// ERROR: Unresolved reference: @data
|
||||
// ERROR: Unresolved reference: @labeled
|
||||
// ERROR: Unresolved reference: @loop
|
||||
// ERROR: Unresolved reference: @loop2
|
||||
@@ -22,8 +22,8 @@
|
||||
// ERROR: Unresolved reference: notLabelAnnotation
|
||||
// ERROR: Unresolved reference: notLoop
|
||||
// ERROR: The label '@abc' does not denote a loop
|
||||
// ERROR: The label '@ann' does not denote a loop
|
||||
// ERROR: The label '@cde' does not denote a loop
|
||||
// ERROR: The label '@data' does not denote a loop
|
||||
// ERROR: The label '@loop' does not denote a loop
|
||||
// ERROR: The label '@loop2' does not denote a loop
|
||||
// ERROR: The label '@loop3' does not denote a loop
|
||||
@@ -32,6 +32,8 @@
|
||||
|
||||
fun run(block: () -> Unit) = block()
|
||||
|
||||
annotation class ann
|
||||
|
||||
notLabelAnnotation class A {
|
||||
fun foo() {
|
||||
loop@
|
||||
@@ -64,8 +66,8 @@ notLabelAnnotation class A {
|
||||
return@labeled
|
||||
}
|
||||
|
||||
@data for (i in 1..100) {
|
||||
continue@data
|
||||
@ann for (i in 1..100) {
|
||||
continue@ann
|
||||
}
|
||||
|
||||
@ for (i in 1..100) {
|
||||
|
||||
+6
-4
@@ -1,7 +1,7 @@
|
||||
// "Update obsolete label syntax in whole project" "true"
|
||||
// ERROR: Unresolved reference: @abc
|
||||
// ERROR: Unresolved reference: @ann
|
||||
// ERROR: Unresolved reference: @cde
|
||||
// ERROR: Unresolved reference: @data
|
||||
// ERROR: Unresolved reference: @labeled
|
||||
// ERROR: Unresolved reference: @loop
|
||||
// ERROR: Unresolved reference: @loop2
|
||||
@@ -22,8 +22,8 @@
|
||||
// ERROR: Unresolved reference: notLabelAnnotation
|
||||
// ERROR: Unresolved reference: notLoop
|
||||
// ERROR: The label '@abc' does not denote a loop
|
||||
// ERROR: The label '@ann' does not denote a loop
|
||||
// ERROR: The label '@cde' does not denote a loop
|
||||
// ERROR: The label '@data' does not denote a loop
|
||||
// ERROR: The label '@loop' does not denote a loop
|
||||
// ERROR: The label '@loop2' does not denote a loop
|
||||
// ERROR: The label '@loop3' does not denote a loop
|
||||
@@ -32,6 +32,8 @@
|
||||
|
||||
fun run(block: () -> Unit) = block()
|
||||
|
||||
annotation class ann
|
||||
|
||||
notLabelAnnotation class A {
|
||||
fun foo() {
|
||||
@loop<caret>
|
||||
@@ -64,8 +66,8 @@ notLabelAnnotation class A {
|
||||
return@labeled
|
||||
}
|
||||
|
||||
@data for (i in 1..100) {
|
||||
continue@data
|
||||
@ann for (i in 1..100) {
|
||||
continue@ann
|
||||
}
|
||||
|
||||
@ for (i in 1..100) {
|
||||
|
||||
Reference in New Issue
Block a user