Files
kotlin-fork/idea/testData/refactoring/inline/inlineVariableOrProperty/InAnnotation.kt.after
T
2019-07-10 15:10:52 +03:00

23 lines
540 B
Plaintext
Vendored

annotation class InAnn(val value: String)
@InAnn("Tagged") class AnnHolder
@InAnn(value = "Tagged") class AnotherAnnHolder
@InAnn("This is Tagged") class ComplexAnnHolder {
@InAnn("That is Tagged") fun foo() {}
}
@InAnn("This is also Tagged") fun bar() {}
fun baz(@InAnn("This is Tagged too") x: Int) {}
@Target(AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.SOURCE)
annotation class ExprAnn(val value: String)
val inProperty = "Tagged"
fun foo() {
@InAnn("Local Tagged") val x = @ExprAnn("Tagged") inProperty
}