[SR-4664] Bad diagnostic passing incorrect type to method in generic type #47241
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Environment
Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)
Additional Detail from JIRA
md5: c0118e87c48248a5048d979e49a82d3c
Issue Description:
This code:
Produces:
Instead of telling me something more useful, like the fact that `x.y[index]` is type `Y`, which doesn't conform to `Collection`.
The text was updated successfully, but these errors were encountered: