W3cubDocs

/Kotlin

SinceKotlin

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.3)
@Target([AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS]) annotation class SinceKotlin

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

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

<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

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

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

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-since-kotlin/index.html