KTIJ-24768 Fix IllegalArgumentException in KtType.isPrimitiveBacked

This commit is contained in:
Pavel Mikhailovskii
2023-03-10 11:03:45 +00:00
committed by Space Team
parent 8d1cfe0017
commit 164cbc9968
16 changed files with 93 additions and 12 deletions
@@ -27,4 +27,9 @@ internal class KtFe10JvmTypeMapper(
val kotlinType = (type as KtFe10Type).fe10Type
return typeMapper.mapType(kotlinType, mode)
}
override fun isPrimitiveBacked(type: KtType): Boolean {
val kotlinType = (type as KtFe10Type).fe10Type
return typeMapper.isPrimitiveBacked(kotlinType)
}
}
@@ -57,6 +57,9 @@ internal class KtFe10JvmTypeMapperContext(private val resolveSession: ResolveSes
return AbstractTypeMapper.mapType(this, type, mode, sw)
}
fun isPrimitiveBacked(type: KotlinType): Boolean =
AbstractTypeMapper.isPrimitiveBacked(this, type)
override fun getClassInternalName(typeConstructor: TypeConstructorMarker): String {
require(typeConstructor is TypeConstructor)