Correctly apply annotation wrap before modifier keyword
#KT-20314 Fixed
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// "Add annotation target" "true"
|
||||
|
||||
@Target(AnnotationTarget.TYPE) annotation class Foo
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
annotation class Foo
|
||||
|
||||
class Test {
|
||||
fun foo(): @Foo Int = 1
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// "Add annotation target" "true"
|
||||
|
||||
@Target(AnnotationTarget.TYPE, AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) annotation class Foo
|
||||
@Target(AnnotationTarget.TYPE, AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
|
||||
annotation class Foo
|
||||
|
||||
@Foo
|
||||
class Test {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// "Make 'A' open" "true"
|
||||
@Deprecated("") open class A() {
|
||||
@Deprecated("")
|
||||
open class A() {
|
||||
open fun foo() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user