UseExperimental

Deprecated

Warning since 1.4

Error since 1.6

Please use OptIn instead.

Replace with

import kotlin.OptIn
OptIn(*markerClass)

Allows to use experimental API denoted by the given markers in the annotated file, declaration, or expression. If a declaration is annotated with UseExperimental, its usages are not required to opt-in to that experimental API.

This class is deprecated in favor of a more general approach provided by RequiresOptIn/OptIn.

Since Kotlin

1.2

Properties

Link copied to clipboard
Since Kotlin 1.2