[SR-12398] Poor pattern matching diagnostic: "for-in loop requires '[Int]' to conform to 'Sequence'" #54836
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
Additional Detail from JIRA
md5: 4541d0d7faeeac2d0db314717dd18ef8
Issue Description:
Reproducer:
The error message doesn't make sense because
[Int]
does conform toSequence
.I would expect a pattern-matching error message along the lines of:
Context: the intended code uses
zip(xs, ys)
instead ofxs
:The text was updated successfully, but these errors were encountered: