-
-
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
Missing ambiguity error for diagonal dispatch #20672
Comments
Looks correct to me: Real <: Any |
What? No, in the former they can be different leaf types, but not the latter (unless that changed?). Neither signature is a subset of (ie more specific than) the other, but both match |
|
What's |
This is a little cryptic. Does the first statement mean that |
This is very similar to #3025. If specificity is limited to strict subtypes, then yes these are technically ambiguous. However I'm inclined to allow |
yes, this example was a bit simpler, but it's the same result & not a bug |
I mentioned this in #20056 (comment) but looking at it again, I think it's probably unrelated/significantly different.
A simpler example for it is
Since the two methods matches two intersecting sets, the intersection should be ambiguous.
A similar case was brought up in #20078 (comment) where Jeff proposed treating explicitly specified leaftype specially though it doesn't really apply to the case here.
The text was updated successfully, but these errors were encountered: