On Thu, Dec 17, 2015 at 11:20 AM, Rafkind, Jon via swift-dev <swift-dev@swift.org> wrote: > How does the Swift compiler determine which method or operator to call given > a set of overloads at a given call site? This question may conflate two > issues: method overloads and operator overloads, but it seems at least > superficially that they are related. Somehow they end up using different > rules as I will demonstrate shortly.
This looks like a bug to me, would you mind filing it on https://bugs.swift.org/ ? Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ _______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev