[SR-13262] Poor diagnostic for type mismatch in for loop where clause #55702
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
Swift version 5.3-dev (LLVM 58f35ca, Swift a6aa7a5)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: a1ebe276788e4e8000eaccc0c84f6423
Issue Description:
The following gives a bad diagnostic:
We should instead be pointing out that the where clause expects a
Bool
value.The text was updated successfully, but these errors were encountered: