internal JSMemberField AddOverload(FunctionObject func, FieldAttributes attributeFlags){
JSMemberField last = this;
while (last.nextOverload != null) last = last.nextOverload;
JSMemberField f = last.nextOverload = new JSMemberField((ClassScope)this.obj, this.Name, func, attributeFlags);
f.type = this.type;
return f;
}