Skip to content

Commit 4673870

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 4673870

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

buildSrc/src/main/kotlin/configure-compilation-conventions.gradle.kts

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ configure(subprojects) {
1919
}
2020
val newOptions =
2121
listOf(
22-
"-progressive", "-Xno-param-assertions", "-Xno-receiver-assertions",
23-
"-Xno-call-assertions"
22+
"-progressive",
23+
"-Xno-param-assertions",
24+
"-Xno-receiver-assertions",
25+
"-Xexpect-actual-classes",
26+
"-Xno-call-assertions",
2427
) + optInAnnotations.map { "-opt-in=$it" }
2528
freeCompilerArgs = freeCompilerArgs + newOptions
2629
}

0 commit comments

Comments
 (0)