Fix exception: don't try to map value of error type

#EA-127029 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-09-10 12:23:47 +03:00
parent 862aa8d1aa
commit 2a04df531a
@@ -1417,7 +1417,7 @@ public class KotlinTypeMapper {
private static boolean isJvmPrimitive(@NotNull KotlinType kotlinType) {
if (KotlinBuiltIns.isPrimitiveType(kotlinType)) return true;
if (InlineClassesUtilsKt.isInlineClassType(kotlinType)) {
if (InlineClassesUtilsKt.isInlineClassType(kotlinType) && !KotlinTypeKt.isError(kotlinType)) {
return AsmUtil.isPrimitive(mapInlineClassType(kotlinType));
}