From 2bb8d1f364581ac6d986658c971755cef79b4e55 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Mon, 17 Oct 2011 20:03:33 +0400 Subject: [PATCH] Error class is not final any more: fewer pointless errors in supertype lists --- .../src/org/jetbrains/jet/lang/types/ErrorUtils.java | 6 ++++++ 1 file changed, 6 insertions(+) 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()));