[Core API] Introduce useTypeRefinement analysis flag
This commit is contained in:
@@ -32,4 +32,7 @@ object AnalysisFlags {
|
||||
|
||||
@JvmStatic
|
||||
val constraintSystemForOverloadResolution by AnalysisFlag.Delegates.ConstraintSystemForOverloadResolution
|
||||
|
||||
@JvmStatic
|
||||
val useTypeRefinement by AnalysisFlag.Delegates.Boolean
|
||||
}
|
||||
|
||||
@@ -139,6 +139,9 @@ class KotlinTypeRefinerImpl(
|
||||
}
|
||||
}
|
||||
|
||||
val LanguageVersionSettings.isTypeRefinementEnabled: Boolean
|
||||
get() = getFlag(AnalysisFlags.useTypeRefinement)
|
||||
|
||||
private val TypeConstructor.allDependentTypeConstructors: Collection<TypeConstructor>
|
||||
get() = when (this) {
|
||||
is NewCapturedTypeConstructor -> {
|
||||
|
||||
Reference in New Issue
Block a user