664
678
fnName, contents.getSourceNode(), parametersNode, returnType);
665
679
JSType existingType = typeRegistry.getType(fnName);
667
686
if (existingType != null) {
668
687
boolean isInstanceObject = existingType.isInstanceType();
669
688
if (isInstanceObject || fnName.equals("Function")) {