FE1.0: keep nullability when approximating local types (in 1.9)
Report an error that inference will change and type has to be provided manually in other language versions, since the current behavior is an unsoundness that can cause runtime NPEs while the new behavior may silently change overload resolution. ^KT-30054 Fixed
This commit is contained in:
@@ -278,6 +278,7 @@ enum class LanguageFeature(
|
||||
ForbidInferringTypeVariablesIntoEmptyIntersection(KOTLIN_1_9, kind = BUG_FIX), // KT-51221
|
||||
ForbidExtensionCallsOnInlineFunctionalParameters(KOTLIN_1_9, kind = BUG_FIX), // KT-52502
|
||||
ForbidInferringPostponedTypeVariableIntoDeclaredUpperBound(KOTLIN_1_9, kind = BUG_FIX), // KT-47986
|
||||
KeepNullabilityWhenApproximatingLocalType(KOTLIN_1_9, kind = BUG_FIX), // KT-53982
|
||||
SkipStandaloneScriptsInSourceRoots(KOTLIN_1_9, kind = OTHER), // KT-52525
|
||||
ModifierNonBuiltinSuspendFunError(KOTLIN_1_9),
|
||||
BreakContinueInInlineLambdas(KOTLIN_1_9, defaultState = State.ENABLED), // KT-1436
|
||||
|
||||
Reference in New Issue
Block a user