[Misc] Enable @Experimental project-wide
This commit is contained in:
committed by
Dmitry Savvinov
parent
f026a98403
commit
a0f339ffc7
@@ -331,6 +331,7 @@ allprojects {
|
|||||||
configureJvmProject(javaHome!!, jvmTarget!!)
|
configureJvmProject(javaHome!!, jvmTarget!!)
|
||||||
|
|
||||||
val commonCompilerArgs = listOfNotNull(
|
val commonCompilerArgs = listOfNotNull(
|
||||||
|
"-Xuse-experimental=kotlin.Experimental",
|
||||||
"-Xallow-kotlin-package",
|
"-Xallow-kotlin-package",
|
||||||
"-Xread-deserialized-contracts",
|
"-Xread-deserialized-contracts",
|
||||||
"-Xjvm-default=compatibility",
|
"-Xjvm-default=compatibility",
|
||||||
|
|||||||
@@ -593,7 +593,6 @@ fun Variance.convertVariance(): TypeVariance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Suppress("EXPERIMENTAL_IS_NOT_ENABLED")
|
|
||||||
@UseExperimental(ExperimentalContracts::class)
|
@UseExperimental(ExperimentalContracts::class)
|
||||||
fun requireOrDescribe(condition: Boolean, value: Any?) {
|
fun requireOrDescribe(condition: Boolean, value: Any?) {
|
||||||
contract {
|
contract {
|
||||||
|
|||||||
Reference in New Issue
Block a user