From e517df15331c25c76ad73cef39db7c1792ecd9a9 Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Tue, 31 Jan 2023 10:18:08 +0000 Subject: [PATCH] [Wasm] Mark JsAllowImplementingFunctionInterface with OTHER kind This fixes test failures when advancing bootstrap. When a language feature has UNSTABLE_FEATURE kind, enabling it causes the compiler to mark the compiled library with the pre-release flag. JsAllowImplementingFunctionInterface feature is enabled by default in Wasm backend. So effectively, all Wasm klibs are marked with the pre-release flag, including the standard library. Pre-release checks were enabled recently and cause compiler errors. To fix the problem, this commit changes the feature kind to OTHER, which doesn't enforce the pre-release flag. Merge-request: KT-MR-8582 Merged-by: Svyatoslav Kuzmich --- .../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 cd824667f69..553a283620a 100644 --- a/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt +++ b/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt @@ -321,7 +321,7 @@ enum class LanguageFeature( ValueClasses(sinceVersion = null, kind = UNSTABLE_FEATURE), JavaSamConversionEqualsHashCode(sinceVersion = null, kind = UNSTABLE_FEATURE), UnitConversionsOnArbitraryExpressions(sinceVersion = null), - JsAllowImplementingFunctionInterface(sinceVersion = null, kind = UNSTABLE_FEATURE), + JsAllowImplementingFunctionInterface(sinceVersion = null, kind = OTHER), CustomEqualsInValueClasses(sinceVersion = null, kind = OTHER), // KT-24874 InlineLateinit(sinceVersion = null, kind = OTHER), // KT-23814 EnableDfaWarningsInK2(sinceVersion = null, kind = OTHER), // KT-50965