Introduce LanguageFeature.Kind
Mainly, Kind affects 'forcesPreReleaseBinaries' and 'enabledInProgressiveMode' flags, and allows to cover common combinations of those flags.
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
||||
}
|
||||
|
||||
if (progressiveMode) {
|
||||
LanguageFeature.values().filter { it.enabledInProgressiveMode }.forEach {
|
||||
LanguageFeature.values().filter { it.kind.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