[SR-2636] + Operator fails to infer type for more than 2 force unwrapped values #45241
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
Attachment: Download
Environment
Xcode 8
Additional Detail from JIRA
md5: b79c6133c0059751b9920db443c6f49b
duplicates:
is duplicated by:
Issue Description:
When summing values pulled (and force unwrapped) from a dictionary, Swift doesn't pick up the types when adding more than 2 values.
e.g. given
These are both fine:
And this fails:
To give some extra info, all of these are valid
The text was updated successfully, but these errors were encountered: