Retention / target for some standard annotations

This commit is contained in:
Mikhail Glukhikh
2015-07-23 11:30:58 +03:00
parent 82165d2a93
commit 8beafe90a0
3 changed files with 10 additions and 7 deletions
@@ -34,4 +34,5 @@ package kotlin.jvm
* MyList<Int>().add(null) // Error
* MyList<Int?>().add(null) // Ok
*/
public annotation class PurelyImplements(public val value: String)
target(AnnotationTarget.CLASSIFIER)
public annotation(retention = AnnotationRetention.RUNTIME) class PurelyImplements(public val value: String)