ExperimentalJsReflectionCreateInstance

Common
JVM
JS
Native
1.9
@Target([AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS]) annotation class ExperimentalJsReflectionCreateInstance
(source)

This annotation marks the experimental Kotlin/JS reflection API that allows to create an instance of provided KClass The API can be removed completely in any further release.

Any usage of a declaration annotated with @ExperimentalJsReflectionCreateInstance should be accepted either by annotating that usage with the OptIn annotation, e.g. @OptIn(ExperimentalJsReflectionCreateInstance::class), or by using the compiler argument -opt-in=kotlin.js.ExperimentalJsReflectionCreateInstance.

Constructors

Common
JVM
JS
Native
1.0

<init>

This annotation marks the experimental Kotlin/JS reflection API that allows to create an instance of provided KClass The API can be removed completely in any further release.

ExperimentalJsReflectionCreateInstance()