Files
kotlin-fork/analysis/low-level-api-fir/testdata/lazyResolve/nestedCompilerRequiredAnnotationsInsideBody.kt
T
Dmitrii Gridin 5c8045f3d0 [LL FIR] add test on nested declarations and annotations
To see the effect of subsequent changes

^KT-56550
2023-05-10 17:17:46 +00:00

31 lines
761 B
Kotlin

annotation class Anno(val s: String)
fun te<caret>st() {
@Deprecated("FirstClass")
@Anno("FirstClass")
class FirstClass @Deprecated("constructor") @Anno("constructor") constructor(@Deprecated("constructorProperty") @Anno("constructorProperty") val a: Int) {
@Deprecated("memberFunction")
@Anno("memberFunction")
fun memberFunction() {
}
@Deprecated("memberProperty")
@Anno("memberProperty")
val memberProperty = 32
}
@Deprecated("anotherFunction")
@Anno("anotherFunction")
fun anotherFunction() {
}
}
@Deprecated("AnotherClass")
@Anno("AnotherClass")
class AnotherClass {
@Deprecated("memberFunction")
@Anno("memberFunction")
fun memberFunction() {
}
}