-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing DU member with interface after v 4.20+ #3915
Comments
@OnurGumus Look like this has to do with #3658, where union case testers are elided. In this case |
I see, thanks for clarification. Well I got way by removing "Is" prefix, but that's an oddly breaking change for the unfamiliar. I eave it to you to close the issue or not. |
@OnurGumus We need to distinguish between the interface member and the augmented union case tester. |
Description
After upgrading to 4.20 or 4.21 one of some DU's don't generate members
Repro code
With 4.19 the following js is generated
Note the
this.IsSuccess
member exists here but not below.with 4.20 and 4.21 we have
Repl link:
https://fable.io/repl/#?code=FDAuE8AcFMAIEl6mgW1gXmLbsCGAjAZ1ACdcBjUWFVfaE2AOWgA8qAuWASwDtQscBYmUrVa9BIQDKAV3LlohQrE74A9moA2ICDFgAFXCULRZ8xcvSwA3gJw5mbTr372AvndiewUOIePQAEqKMppUmPYAPrBmCkqwagBmBkYmsRYg9i70iRRwiMhoAO5coAAWnvY0KHQM5VyEAHSO4ZX2OCi4oORlsPXKJeVt7bDR6fGQygC0AHywk82sriNiNRL9jfDScnGWw+2d3b39sIMVK+1jOxawAPqws30kMtDAQA&html=DwCwLgtgNgfAUHUBTAhgE3gAk8CSwqbhgAOAtEgI4CuAlgG4C8A5AMID2AdmEt2QCoBPEkmaYAxlx7cWPAB5gA9OGgBuCSBQAnAM75G1MADMyADmZYcO8VtokwmHVvGMARMRI6AXIsXVOJADWAOYAdJIQigACAO5IAEYRJFy8YDqK4tQ6YOwQFFBIeNw6UQCMoQBMoQAMGVk5eUgFRWmhELScoQBWOq4wwIrWtvaWwEN2Dk4u7mCk3r7+QWER0XGJucmcqek6mmiCaLlloeUAzIN7B7ltHd29-YM2E-ADIKgYCMDx7PsSUCg6HRuFAkciSbgoDpILR9ODYbC4QRkeKGHKcTD-eJNNzsdh9AYQJEo2ZcF6Kb77eCIZSQWBwIA&css=Q
Expected and actual results
Expected:
Actual: not generated
The text was updated successfully, but these errors were encountered: