diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/error/NamedFunctionDescriptorErrorImpl.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/error/NamedFunctionDescriptorErrorImpl.java index 01120473195..4ebb4249b98 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/error/NamedFunctionDescriptorErrorImpl.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/error/NamedFunctionDescriptorErrorImpl.java @@ -2,6 +2,8 @@ package org.jetbrains.jet.lang.types.error; import org.jetbrains.annotations.NotNull; import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor; +import org.jetbrains.jet.lang.descriptors.FunctionDescriptorImpl; +import org.jetbrains.jet.lang.descriptors.NamedFunctionDescriptor; import org.jetbrains.jet.lang.descriptors.NamedFunctionDescriptorImpl; import org.jetbrains.jet.lang.descriptors.annotations.AnnotationDescriptor; import org.jetbrains.jet.lang.types.ErrorUtils; @@ -21,4 +23,15 @@ public class NamedFunctionDescriptorErrorImpl extends NamedFunctionDescriptorImp super(ErrorUtils.getErrorClass(), Collections.emptyList(), ""); this.ownerScope = ownerScope; } + + @Override + protected FunctionDescriptorImpl createSubstitutedCopy() { + return this; + } + + @NotNull + @Override + public NamedFunctionDescriptor copy(DeclarationDescriptor newOwner, boolean makeNonAbstract) { + return this; + } }