properly copy error function

This commit is contained in:
Stepan Koltsov
2012-02-04 11:56:36 +04:00
parent d9ffa4c882
commit bf53a14c4e
@@ -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.<AnnotationDescriptor>emptyList(), "<ERROR FUNCTION>");
this.ownerScope = ownerScope;
}
@Override
protected FunctionDescriptorImpl createSubstitutedCopy() {
return this;
}
@NotNull
@Override
public NamedFunctionDescriptor copy(DeclarationDescriptor newOwner, boolean makeNonAbstract) {
return this;
}
}