Commit 2fdd4b6
committed
[CSOptimizer] Allow literal arguments to match parameters that conform to
`scoreCandidateMatch` needs to reflect the fact that literal can
assume any type that conforms to `ExpressibleBy{Integer, Float}Literal`
protocol but since such bindings are non-default and alway produce
a worse solution vs. default literal types if all of the arguments
are literals let's use only exact matches otherwise there is a chance
of "over-favoring" and creating more work for ranking.ExpressibleBy{Integer, Float}Literal
1 parent 9b62c84 commit 2fdd4b6
2 files changed
+30
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
484 | 500 | | |
485 | 501 | | |
486 | 502 | | |
| |||
634 | 650 | | |
635 | 651 | | |
636 | 652 | | |
637 | | - | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
638 | 657 | | |
639 | 658 | | |
640 | 659 | | |
| |||
812 | 831 | | |
813 | 832 | | |
814 | 833 | | |
815 | | - | |
| 834 | + | |
816 | 835 | | |
817 | 836 | | |
818 | 837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
0 commit comments