frontend: do not set FunctionDescriptorImpl.returnValue more than once
This commit is contained in:
@@ -113,6 +113,10 @@ public abstract class FunctionDescriptorImpl extends DeclarationDescriptorImpl i
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setReturnType(@NotNull JetType unsubstitutedReturnType) {
|
public void setReturnType(@NotNull JetType unsubstitutedReturnType) {
|
||||||
|
if (this.unsubstitutedReturnType != null) {
|
||||||
|
// TODO: uncomment and fix tests
|
||||||
|
//throw new IllegalStateException("returnType already set");
|
||||||
|
}
|
||||||
this.unsubstitutedReturnType = unsubstitutedReturnType;
|
this.unsubstitutedReturnType = unsubstitutedReturnType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user