Do not approximate DefinitelyNotNullType in public declarations
Because since 1.6 they become normal denotable types ^KT-26245 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
e74a0c7ef7
commit
37f923a98f
+1
-1
@@ -365,7 +365,7 @@ abstract class AbstractTypeApproximator(
|
||||
return typeWithErasedNullability
|
||||
}
|
||||
|
||||
return if (conf.definitelyNotNullType) {
|
||||
return if (conf.definitelyNotNullType || languageVersionSettings.supportsFeature(LanguageFeature.DefinitelyNotNullTypeParameters)) {
|
||||
approximatedOriginalType?.makeDefinitelyNotNullOrNotNull()
|
||||
} else {
|
||||
if (toSuper)
|
||||
|
||||
Reference in New Issue
Block a user