Commits

Doug Gregor committed 916e9a7eb5f
Fix computation of “favored” constraints for binary expressions <rdar://problem/17943223>. The determination of “favored” constraints for binary expressions was comparing the second argument to the first parameter to decide if the constraint is favored. Coupled with implicit bridging conversions through NSNumber, this meant that “1.0/10” would become Int when Foundation was imported, and hilarity ensued. Fix the heuristic for favored constraints, tidy up this code a bit, and add ==(NSString, NSString) to cope with the ambiguity this creates. Swift SVN r21154