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.
This commit is contained in:
Svyatoslav Scherbina
2022-12-28 15:54:44 +01:00
committed by Space Team
parent 0f63cfecbd
commit 4db7bac4c0
@@ -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),