From 35e157e9c59fcc0dbc562e0dd3a606c10ee820af Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 23 Feb 2012 01:18:11 +0400 Subject: [PATCH] fix tests --- .../src/org/jetbrains/jet/lang/types/ErrorUtils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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("");