if (functionType.isConstructor()) {
JSType rvalueType = rvalue.getJSType();
validator.expectObject(t, rvalue, rvalueType,
OVERRIDING_PROTOTYPE_WITH_NON_OBJECT);
// Only assign structs to the prototype of a @struct constructor
if (functionType.makesStructs() && !rvalueType.isStruct()) {
String funName = functionType.getTypeOfThis().toString();
compiler.report(t.makeError(assign, CONFLICTING_SHAPE_TYPE,
"struct", funName));
}
return;