-
Notifications
You must be signed in to change notification settings - Fork 327
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
Calling a method that returns 'itself' on a multi-value should not lose multi-value structure? #12143
Comments
The relevant tests are
To be honest, based on @JaroslavTulach's workaround 9bb73ae led me to believe that all of these tests will fail. Somehow, in my tests I see:
So only the first one fails but others pass already. That suggests to me that these tests are inexhaustive, because the workaround that @JaroslavTulach added was for |
Eureka! In b8407da I was able to add tests that are failing. When on a walk, I've realized what was the difference between my test cases and the Apparently, the hidden part of the type gets cut off at dispatch of e.g. I think it should not disappear as that will be very confusing to our users. |
Additionally, the tests from b8407da uncover a related assertion failure:
|
Jaroslav Tulach reports a new STANDUP for today (2025-01-28): Progress: .
|
Jaroslav Tulach reports a new STANDUP for yesterday (2025-01-29): Progress: .
|
Jaroslav Tulach reports a new STANDUP for yesterday (2025-01-30): Progress: .
|
Jaroslav Tulach reports a new STANDUP for today (2025-01-31): Progress: .
|
I think that indeed it is undesirable to lose the multi value structure in methods such as:
This is demonstrated in ffe1172.
FYI:
EnsoMultiValue.to_text
delegate to first typeto_text
#11827multi_value.to
doesn't work on second & further elements of intersection type #11935The text was updated successfully, but these errors were encountered: