[SR-13277] Misleading warning when casting Array to unrelated Array #55717
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
Version 12.0 beta (12A6159)
Additional Detail from JIRA
md5: abca29e2d9975135fedd34a03ba0f110
duplicates:
Issue Description:
Warning says that the cast always fails. It's not true. It should instead say
Cast from '[String]' to unrelated type '[Int]' always fails, unless the array is empty
The text was updated successfully, but these errors were encountered: