mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
This commits adds a new annotation OptionalExpectation to the standard library, which is experimental. To enable its usage, either pass '-Xuse-experimental=kotlin.ExperimentalMultiplatform' as a compiler argument, or '-Xuse-experimental=kotlin.Experimental' and also annotate each usage with `@UseExperimental(ExperimentalMultiplatform::class)` #KT-18882 Fixed
11 lines
191 B
Kotlin
Vendored
11 lines
191 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// ADDITIONAL_COMPILER_ARGUMENTS: -Xuse-experimental=kotlin.ExperimentalMultiplatform
|
|
|
|
@OptionalExpectation
|
|
expect annotation class A()
|
|
|
|
expect class C {
|
|
@A
|
|
fun f()
|
|
}
|