[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
This commit is contained in:
committed by
Space Team
parent
ded5cf2caa
commit
a65c735feb
+29
@@ -0,0 +1,29 @@
|
||||
@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() {
|
||||
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
|
||||
@OptIn(ExperimentalPathApi::class, ExperimentalStdlibApi::class)
|
||||
class Usage {
|
||||
|
||||
}
|
||||
|
||||
@ExperimentalPathApi
|
||||
@ExperimentalStdlibApi
|
||||
fun direct() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@kotlin.io.path.ExperimentalPathApi
|
||||
@kotlin.io.path.ExperimentalPathApi
|
||||
fun fqName() {
|
||||
|
||||
}
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
@OptIn(ExperimentalPathApi::class)
|
||||
class Usage {
|
||||
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalPathApi::class, OtherOptIn::class)
|
||||
class WithOtherArgument {
|
||||
|
||||
}
|
||||
|
||||
fun x() {
|
||||
@OptIn(ExperimentalPathApi::class)
|
||||
call()
|
||||
}
|
||||
|
||||
@OptIn()
|
||||
fun y() {
|
||||
|
||||
}
|
||||
|
||||
@ExperimentalPathApi
|
||||
fun direct() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@kotlin.io.path.ExperimentalPathApi
|
||||
fun fqName() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user