[NI] Remove captured type approximation in type arguments of resolved call

This commit is contained in:
Dmitriy Novozhilov
2019-04-23 13:46:49 +03:00
committed by Mikhail Zarechenskiy
parent 421fda6e92
commit 65380f4eb4
4 changed files with 11 additions and 3 deletions
@@ -90,6 +90,13 @@ open class TypeApproximatorConfiguration {
object CapturedAndIntegerLiteralsTypesApproximation : TypeApproximatorConfiguration.AbstractCapturedTypesApproximation(FROM_EXPRESSION) {
override val integerLiteralType: Boolean get() = true
}
object IntegerLiteralsTypesApproximation : TypeApproximatorConfiguration.AllFlexibleSameValue() {
override val integerLiteralType: Boolean get() = true
override val allFlexible: Boolean get() = true
override val intersection get() = ALLOWED
override val typeVariable: (TypeVariableTypeConstructor) -> Boolean get() = { true }
override val capturedType: (NewCapturedType) -> Boolean get() = { true }
}
}