Add language feature for inference compatibility mode

The feature is intended for updates in the inference algorithm
that change behaviour compared to the previous stable version.
This commit is contained in:
Pavel Kirpichenkov
2020-09-18 12:01:42 +03:00
parent 896fbbd1a3
commit 1465e10f12
4 changed files with 13 additions and 0 deletions
@@ -135,6 +135,7 @@ enum class LanguageFeature(
DisableCompatibilityModeForNewInference(KOTLIN_1_5, defaultState = LanguageFeature.State.DISABLED),
AdaptedCallableReferenceAgainstReflectiveType(KOTLIN_1_5, defaultState = LanguageFeature.State.DISABLED),
ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated(KOTLIN_1_5, kind = BUG_FIX),
InferenceCompatibility(KOTLIN_1_5, kind = BUG_FIX),
// Temporarily disabled, see KT-27084/KT-22379
SoundSmartcastFromLoopConditionForLoopAssignedVariables(sinceVersion = null, kind = BUG_FIX),