[FIR] Don't enable features without sinceKotlin in Progressive Mode
There are two BUG_FIX features that have been added to the compiler, without a clear decision to enable them somewhere in the future. Since there is no decision to force users rewrite their code, such features should not be enabled in Progressive Mode. ^KT-62644 Fixed ^KT-62143 Fixed
This commit is contained in:
committed by
Space Team
parent
9366847e96
commit
ba9baa7457
+1
-1
@@ -883,7 +883,7 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
||||
}
|
||||
|
||||
if (progressiveMode) {
|
||||
LanguageFeature.values().filter { it.kind.enabledInProgressiveMode }.forEach {
|
||||
LanguageFeature.entries.filter { it.enabledInProgressiveMode }.forEach {
|
||||
// Don't overwrite other settings: users may want to turn off some particular
|
||||
// breaking change manually instead of turning off whole progressive mode
|
||||
if (!contains(it)) put(it, LanguageFeature.State.ENABLED)
|
||||
|
||||
Reference in New Issue
Block a user