Files
kotlin-fork/libraries/tools/ide-plugin-dependencies-validator/testData/source/experimentalStdlibApi.kt
T
Ilya Kirillov a65c735feb [build] add checks to ensure that no modules which are part of the IDE plugin do not use experimental stdlib API
to ensure binary compatibility with stdlib inside IntelliJ.

This includes using the latest stable kotlin API version and
forbidding using experimental declarations from stdlib.

^KT-62510
2023-10-25 08:38:07 +00:00

30 lines
329 B
Kotlin
Vendored

@OptIn(ExperimentalStdlibApi::class)
class Usage {
}
@OptIn(ExperimentalStdlibApi::class, OtherOptIn::class)
class WithOtherArgument {
}
fun x() {
@OptIn(ExperimentalStdlibApi::class)
call()
}
@OptIn()
fun empty() {
}
@ExperimentalStdlibApi
fun direct() {
}
@kotlin.io.path.ExperimentalPathApi
fun fqName() {
}