annotation class Anno(val s: String) fun test() { @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() { } }