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 590ac902909..549684f6fc5 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/ErrorUtils.java @@ -83,6 +83,12 @@ public class ErrorUtils { public Set getConstructors() { return ERROR_FUNCTION_GROUP; } + + @NotNull + @Override + public Modality getModality() { + return Modality.OPEN; + } }; private static final Set ERROR_FUNCTION_GROUP = Collections.singleton(createErrorFunction(0, Collections.emptyList()));