generation/core/generator.js
function hasProblematicOverloading(instances) {
    // Check if there are same lengthed argument sets
    const knownLengths = [];
    return instances.map(({ args }) => args.length).reduce((carry, item) => {
      if (carry || knownLengths.some((l) => l === item)) {
        return true;
      }

      knownLengths.push(item);
      return false;
    }, false);
  }
function hasProblematicOverloading(instances) {
    // Check if there are same lengthed argument sets
    const knownLengths = [];
    return instances.map(({ args }) => args.length).reduce((carry, item) => {
      if (carry || knownLengths.some((l) => l === item)) {
        return true;
      }

      knownLengths.push(item);
      return false;
    }, false);
  }
function hasProblematicOverloading ( instances ) { // Check if there are same lengthed argument sets const knownLengths = [ ] ; return instances . map ( ( { args } ) => args . length ) . reduce ( ( carry , item ) => { if ( carry || knownLengths . some ( ( l ) => l === item ) ) { return true ; } knownLengths . push ( item ) ; return false ; } , false ) ; }
We don't handle same lengthed argument sets right now. In the future we could write the type checks in a way that would allow us to do an either or switch in this case
We don t handle same lengthed argument sets right now . In the future we could write the type checks in a way that would allow us to do an either or switch in this case