[LL FIR] add test on nested declarations and annotations
To see the effect of subsequent changes ^KT-56550
This commit is contained in:
committed by
Space Team
parent
990f23a11b
commit
5c8045f3d0
Vendored
+49
@@ -0,0 +1,49 @@
|
||||
annotation class Anno(val s: String)
|
||||
|
||||
@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("NestedClass")
|
||||
@Anno("NestedClass")
|
||||
class NestedClass @Deprecated("constructor") @Anno("constructor") constructor(@Deprecated("constructorProperty") @Anno("constructorProperty") val a: Int) {
|
||||
@Deprecated("memberFunction")
|
||||
@Anno("memberFunction")
|
||||
fun member<caret>Function() {
|
||||
}
|
||||
|
||||
@Deprecated("memberProperty")
|
||||
@Anno("memberProperty")
|
||||
val memberProperty = 32
|
||||
}
|
||||
|
||||
@Deprecated("companion")
|
||||
@Anno("companion")
|
||||
companion object {
|
||||
@Deprecated("memberFunction")
|
||||
@Anno("memberFunction")
|
||||
fun memberFunction() {
|
||||
}
|
||||
|
||||
@Deprecated("memberProperty")
|
||||
@Anno("memberProperty")
|
||||
val memberProperty = 32
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated("AnotherClass")
|
||||
@Anno("AnotherClass")
|
||||
class AnotherClass {
|
||||
@Deprecated("memberFunction")
|
||||
@Anno("memberFunction")
|
||||
fun memberFunction() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user