Kapt: Support @Deprecated annotations (KT-30368)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package deprecated
|
||||
|
||||
@Deprecated("Deprecated annotation")
|
||||
annotation class Anno
|
||||
|
||||
@Deprecated("Deprecated class")
|
||||
@Anno
|
||||
class Foo {
|
||||
@Deprecated("Deprecated function")
|
||||
fun foo(a: Int) {}
|
||||
|
||||
@Deprecated("Deprecated property")
|
||||
val prop = 0
|
||||
|
||||
var foo: Int
|
||||
@Deprecated("Deprecated getter") get() = 0
|
||||
@Deprecated("Deprecated setter") set(value) {}
|
||||
}
|
||||
Reference in New Issue
Block a user