From 7e088457a250b21e153ed5cc73d636935cf8e1c4 Mon Sep 17 00:00:00 2001 From: "Denis.Zharkov" Date: Wed, 9 Dec 2020 22:29:55 +0300 Subject: [PATCH] Temporary clear sinceVersion for ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated ^KT-36770 Related ^KT-26245 Related --- .../org/jetbrains/kotlin/config/LanguageVersionSettings.kt | 4 +++- 1 file changed, 3 insertions(+), 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 b016571cdcd..6c594382d31 100644 --- a/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt +++ b/compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt @@ -135,7 +135,6 @@ enum class LanguageFeature( ProperArrayConventionSetterWithDefaultCalls(KOTLIN_1_5, kind = OTHER), 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), RequiredPrimaryConstructorDelegationCallInEnums(KOTLIN_1_5, kind = BUG_FIX), ForbidAnonymousReturnTypesInPrivateInlineFunctions(KOTLIN_1_5, kind = BUG_FIX), @@ -149,6 +148,9 @@ enum class LanguageFeature( // Temporarily disabled, see KT-27084/KT-22379 SoundSmartcastFromLoopConditionForLoopAssignedVariables(sinceVersion = null, kind = BUG_FIX), + // Looks like we can't enable it until KT-26245 is fixed because otherwise some use cases become broken because of overrides + ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated(sinceVersion = null, kind = BUG_FIX), + // Experimental features Coroutines(