Mark expect/actual classifiers as experimental

^KT-61573 Fixed
Review: https://jetbrains.team/p/kt/reviews/11969/timeline

Tests:
- MultiPlatformIntegrationTestGenerated
- CliTestGenerated
- MultiPlatformIntegrationTestGenerated
- DiagnosticTestGenerated.Multiplatform
- FirLightTreeOldFrontendDiagnosticsTestGenerated

Also add -Xexpect-actual-classes flag to all necessary ./libraries/* modules
Otherwise compilation of those modules failes because of `-Werror`
This commit is contained in:
Nikita Bobko
2023-08-30 15:39:19 +02:00
committed by Space Team
parent 6a19c4ce96
commit 01fc708a0f
68 changed files with 633 additions and 5 deletions
+3
View File
@@ -110,6 +110,7 @@ kotlin {
// providing exhaustive list of args here
freeCompilerArgs = listOf(
"-Xallow-kotlin-package",
"-Xexpect-actual-classes",
"-Xmultifile-parts-inherit",
"-Xuse-14-inline-classes-mangling-scheme",
"-Xbuiltins-from-sources",
@@ -168,6 +169,7 @@ kotlin {
kotlinOptions {
freeCompilerArgs += listOf(
"-Xallow-kotlin-package", // TODO: maybe rename test packages
"-Xexpect-actual-classes",
)
if (kotlinBuildProperties.useFir) {
freeCompilerArgs += "-Xuse-k2"
@@ -256,6 +258,7 @@ kotlin {
main.apply {
kotlinOptions {
freeCompilerArgs += "-Xir-module-name=kotlin"
freeCompilerArgs += "-Xexpect-actual-classes"
if (!kotlinBuildProperties.disableWerror) {
allWarningsAsErrors = true
@@ -63,6 +63,7 @@ tasks.compileKotlin {
kotlinOptions {
freeCompilerArgs += listOf(
"-Xallow-kotlin-package",
"-Xexpect-actual-classes",
"-Xmulti-platform",
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.contracts.ExperimentalContracts",