if (this.anonymousType != null) {
if (!receiverType.isEnum()) {
scope.problemReporter().anonymousClassCannotExtendFinalClass(this.type, receiverType);
hasError = true;
}
} else if (!receiverType.canBeInstantiated()) {
scope.problemReporter().cannotInstantiate(this.type, receiverType);
return this.resolvedType = receiverType;
}
}
// resolve type arguments (for generic constructor call)