[SR-4304] Swift compiler unable to resolve correct overload of + operator for arrays in generic function #46887
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Xcode 8.2.1 (8C1002) with the included
Additional Detail from JIRA
md5: 929e460ad9d2931ec9a446f7be03c731
is blocked by:
Issue Description:
I've had several problems with the plus operator so I decided to investigate and ended up with the following minimal example. When I compile
everything is fine. The compiler chooses this overload of the plus operator:
However, when I add another `+` to the game, I get this:
I found several ways to make this work, like for instance
The text was updated successfully, but these errors were encountered: