[NI] Get rid of FE 1.0 types in AbstractTypeCheckerContextForConstraintSystem

This commit is contained in:
Dmitriy Novozhilov
2020-08-25 18:39:45 +03:00
parent 686c17a234
commit 527c5a771d
5 changed files with 35 additions and 5 deletions
@@ -316,6 +316,14 @@ interface ConeInferenceContext : TypeSystemInferenceExtensionContext, ConeTypeCo
return this.defaultType
}
override fun TypeConstructorMarker.isTypeVariable(): Boolean {
return this is ConeTypeVariableTypeConstructor
}
override fun TypeVariableTypeConstructorMarker.isContainedInInvariantOrContravariantPositions(): Boolean {
return false
}
override fun captureFromExpression(type: KotlinTypeMarker): KotlinTypeMarker? {
return type
}