From ba2e46758d46efb262f9e5563e96f6eaa162d4b9 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Tue, 14 Mar 2023 20:03:56 +0100 Subject: [PATCH] Fix kotlin-native/backend.native/tests/samples after 82524fd Enable language feature for these tests, because some code relies on implicit integer coercion there --- kotlin-native/backend.native/tests/samples/build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kotlin-native/backend.native/tests/samples/build.gradle.kts b/kotlin-native/backend.native/tests/samples/build.gradle.kts index 79d79288196..451c73e80ca 100644 --- a/kotlin-native/backend.native/tests/samples/build.gradle.kts +++ b/kotlin-native/backend.native/tests/samples/build.gradle.kts @@ -19,6 +19,10 @@ allprojects { val kotlinCompilerRepo: String? by rootProject kotlinCompilerRepo?.let { maven(it) } } + + tasks.withType().configureEach { + compilerOptions.freeCompilerArgs.add("-XXLanguage:+ImplicitSignedToUnsignedIntegerConversion") + } } val hostOs = System.getProperty("os.name")