SinceKotlin
@Target([AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS]) annotation class SinceKotlin
(Common source) (Native source)
Specifies the first version of Kotlin where a declaration has appeared.
Using the declaration and specifying an older API version (via the -api-version
command line option) will result in an error.
Constructors
<init>
Specifies the first version of Kotlin where a declaration has appeared.
Using the declaration and specifying an older API version (via the -api-version
command line option) will result in an error.
<init>(version: String)
Properties
version
the version in the following formats: <major>.<minor>
or <major>.<minor>.<patch>
, where major, minor and patch
are non-negative integer numbers without leading zeros.
val version: String
Extension Properties
annotationClass
Returns a KClass instance corresponding to the annotation type of this annotation.
val <T : Annotation> T.annotationClass: KClass<out T>