You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@DougGregor, @rudkx, or @xedin would be a better judge of the intended behavior here. It seems like the extension `sum` ought to be more specific in this case, but is the type checker set up to score constrained generics in this way (or expected to be)?
I think my changes in #15946 are going to fix this case because first extension is supposed to be more specific than other one one with generic signature in `sum` method.
Additional Detail from JIRA
md5: 1ff3c4a77acedeb5a72b9815c51ccc1d
Issue Description:
Reproduction scenario:
yields the following not very helpful error:
I suspect the real error is that series is a Sequence of Any? instead of Numeric?
For more context, please see this thread on forums.swift.org:
https://forums.swift.org/t/generic-method-over-a-sequence-of-optionals/12106
The text was updated successfully, but these errors were encountered: