JVM IR: do not use KotlinTypeMapper in IrTypeMapper.mapType

This commit is contained in:
Alexander Udalov
2019-05-14 18:36:15 +02:00
parent 1e16c0a447
commit a15575d546
8 changed files with 368 additions and 39 deletions
@@ -1433,7 +1433,7 @@ class KotlinTypeMapper @JvmOverloads constructor(
private fun hasNothingInNonContravariantPosition(kotlinType: KotlinType): Boolean =
SimpleClassicTypeSystemContext.hasNothingInNonContravariantPosition(kotlinType)
private fun TypeSystemContext.hasNothingInNonContravariantPosition(type: KotlinTypeMarker): Boolean {
fun TypeSystemContext.hasNothingInNonContravariantPosition(type: KotlinTypeMarker): Boolean {
val typeConstructor = type.typeConstructor()
for (i in 0 until type.argumentsCount()) {