diff --git a/idea/src/org/jetbrains/jet/codegen/JetTypeMapper.java b/idea/src/org/jetbrains/jet/codegen/JetTypeMapper.java index a034e2abd97778ca10baeca43948157fc369de69..2f2967804d58f1d507f4f35a8925effe8817533a 100644 --- a/idea/src/org/jetbrains/jet/codegen/JetTypeMapper.java +++ b/idea/src/org/jetbrains/jet/codegen/JetTypeMapper.java @@ -79,7 +79,7 @@ public class JetTypeMapper { } public Type mapType(final JetType jetType) { - if (jetType.equals(JetStandardClasses.getUnitType())) { + if (jetType.equals(JetStandardClasses.getUnitType()) || jetType.equals(JetStandardClasses.getNothingType())) { return Type.VOID_TYPE; } if (jetType.equals(standardLibrary.getIntType())) {