From 4db7bac4c098d48e58b308115b507dc32fac52b9 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Wed, 28 Dec 2022 15:54:44 +0100 Subject: [PATCH] Switch JsAllowValueClassesInExternals kind from UNSTABLE_FEATURE to OTHER When a language feature has UNSTABLE_FEATURE kind, enabling it causes the compiler to mark the compiled library with the pre-release flag. JsAllowValueClassesInExternals feature is enabled by default in JS IR backend. So effectively, all JS klibs are marked with the pre-release flag. This remained unnoticed because the compiler currently doesn't read this flag from klibs. This will change soon. To fix the problem, this commit changes the feature kind to OTHER, which doesn't enforce the pre-release flag. --- .../src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt b/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt index 8f58adcf834..7b85e26aca1 100644 --- a/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt +++ b/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt @@ -312,7 +312,7 @@ enum class LanguageFeature( ExplicitBackingFields(sinceVersion = null, kind = UNSTABLE_FEATURE), FunctionalTypeWithExtensionAsSupertype(sinceVersion = null), JsAllowInvalidCharsIdentifiersEscaping(sinceVersion = null, kind = UNSTABLE_FEATURE), - JsAllowValueClassesInExternals(sinceVersion = null, kind = UNSTABLE_FEATURE), + JsAllowValueClassesInExternals(sinceVersion = null, kind = OTHER), ContextReceivers(sinceVersion = null), ValueClasses(sinceVersion = null, kind = UNSTABLE_FEATURE), JavaSamConversionEqualsHashCode(sinceVersion = null, kind = UNSTABLE_FEATURE),