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
@@ -65,6 +65,9 @@ class FirJvmTypeMapper(val session: FirSession) : FirSessionComponent {
return AbstractTypeMapper.mapType(context, type, mode, sw)
}
fun isPrimitiveBacked(type: ConeKotlinType): Boolean =
AbstractTypeMapper.isPrimitiveBacked(defaultContext, type)
private val defaultContext = Context { null }
val typeContext: TypeSystemCommonBackendContext
get() = defaultContext.typeContext