{{ message }}
Repository navigation
Commit d8172a9
committed
Fixup #1 (iteration 2): Address remaining CODE-QUALITY, PERF, TEST-CODE-QUALITY feedback
CODE-QUALITY:
- evaluateTiebreakRules now delegates to findDecidingRule (eliminates duplicate loop)
- Remove dead code: wasDecidedByRule (zero callers after fixup iteration 1)
- Remove unnecessary API surface: getAllTiebreakRules (zero external callers)
PERF:
- Cache deciding rules from pairwise comparisons in Dictionary; concreteness
warning check uses cache lookup instead of re-evaluating all 15 rules
- Reuse existing OverloadResolutionContext (ctx) in incomparableConcretenessInfo
instead of allocating a duplicate record
TEST-CODE-QUALITY:
- Parameterize 16 remaining structurally identical tests into
concreteWrapperTestCases (12 Fact tests) and concreteWrapperNetCoreTestCases
(4 FactForNETCOREAPP tests via TheoryForNETCOREAPP)
- Net reduction: ~319 lines1 parent 4c1662d commit d8172a9
4 files changed
Lines changed: 80 additions & 399 deletions
File tree
- src/Compiler/Checking
- tests/FSharp.Compiler.ComponentTests/Conformance/Tiebreakers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 650 | | |
654 | 651 | | |
655 | 652 | | |
656 | 653 | | |
657 | 654 | | |
658 | 655 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | 656 | | |
680 | | - | |
| 657 | + | |
681 | 658 | | |
682 | 659 | | |
683 | 660 | | |
| |||
696 | 673 | | |
697 | 674 | | |
698 | 675 | | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
703 | 679 | | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
721 | 684 | | |
722 | 685 | | |
723 | 686 | | |
| |||

0 commit comments