[AA LC] Keep original qualifier while translating error cone types to Psi types

This commit is contained in:
Dmitriy Novozhilov
2022-09-26 17:00:59 +03:00
committed by Space Team
parent a3b9f15ecc
commit d5a76a1b3b
19 changed files with 79 additions and 47 deletions
@@ -58,7 +58,8 @@ object AbstractTypeMapper {
sw: Writer? = null
): Type {
if (type.isError()) {
val jvmType = Type.getObjectType(NON_EXISTENT_CLASS_NAME)
val name = type.getNameForErrorType() ?: NON_EXISTENT_CLASS_NAME
val jvmType = Type.getObjectType(name)
with(context) { sw?.writeGenericType(type, jvmType, mode) }
return jvmType
}