Open ooovi opened 3 years ago
The problem is that when checking a bunch of choices, we create constraints for all of them. And later, when we choose one of them, all the irrelevant constraints are left over.
This means we should keep track of which constraints belong to which choice, or alternatively, only really create those constraints once a choice is chosen.
As of 018ed36e172d78906d3dd6489da1eb5064a3ffd4 we still have this problem.
gives the right result, but also has leftover constraint that don't appear in the result type: