diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java index fa82dbbf07a..1f8ee404562 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java @@ -177,11 +177,14 @@ public class ErrorUtils { } public static ConstructorDescriptor createErrorConstructor(int typeParameterCount, List positionedValueParameterTypes) { - return new ConstructorDescriptorImpl(ERROR_CLASS, Collections.emptyList(), false).initialize( + ConstructorDescriptorImpl r = new ConstructorDescriptorImpl(ERROR_CLASS, Collections.emptyList(), false); + r.initialize( Collections.emptyList(), // TODO Collections.emptyList(), // TODO Visibility.INTERNAL ); + r.setReturnType(createErrorType("")); + return r; } private static final JetType ERROR_PARAMETER_TYPE = createErrorType("");