Commit 28c0e79
committed
Drop lazy recursive application in approximateParent
This plays badly with any code that inspects bounds deeply when creating constraints
since the LazyRefs create new type variables at unexpected times. Instead, create
the type variables first with an empty constraint of the right kind and then add
the bounds to the constraint using subtype tests.1 parent afc6ce4 commit 28c0e79
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
774 | | - | |
775 | 773 | | |
776 | 774 | | |
777 | 775 | | |
778 | | - | |
| 776 | + | |
| 777 | + | |
779 | 778 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
| 779 | + | |
| 780 | + | |
785 | 781 | | |
786 | | - | |
787 | 782 | | |
788 | 783 | | |
789 | 784 | | |
| |||
0 commit comments