From 2a04df531a373192f1ba7c92e3d4c413315cf434 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Mon, 10 Sep 2018 12:23:47 +0300 Subject: [PATCH] Fix exception: don't try to map value of error type #EA-127029 Fixed --- .../org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java index 686f483b618..e1a2f2dadf5 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java @@ -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)); }