-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
specialization on function argument not occuring as expected #19137
Comments
This is working as intended and as required to ensure compile times are reasonable |
Cheers, closing then. Thanks! |
Re-opening this as a doc issue. It doesn't seem documented that higher-order function specialization works this way, and it seems pretty crucial to explain. For any other abstract argument type, like |
Also, doesn't #8974 mean that |
no. #8974 only says that you'll get a warning when you define two methods whose signatures cover exactly the same set of types. it doesn't require that every method do the same thing. |
Still, it would make this even more confusing. If this is needed, maybe being more explicit would be better? |
This is now documented in the performance tips. |
See #18975 (comment) for the original discussion and ref. #19065. Best!
The text was updated successfully, but these errors were encountered: