Skip to content

Commit 0e22048

Browse files
committed
Mute "expect/actual classes are experimental" warning
This warning is introduced in Kotlin 1.9. KT-61573 If I don't mute this warning then the build fails because of `-Werror`
1 parent 2d64ba1 commit 0e22048

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

kotlinx-coroutines-core/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ kotlin {
170170
}
171171
}
172172

173+
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
174+
kotlinOptions {
175+
freeCompilerArgs += ['-Xexpect-actual-classes']
176+
}
177+
}
178+
173179
configurations {
174180
configureKotlinJvmPlatform(kotlinCompilerPluginClasspath)
175181
}

kotlinx-coroutines-test/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ kotlin {
2727
}
2828
}
2929
}
30+
31+
compilerOptions {
32+
freeCompilerArgs.add("-Xexpect-actual-classes")
33+
}
3034
}

0 commit comments

Comments
 (0)