[SR-12946] Cast warning shows when checking type #55392
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
standard library
Area: Standard library umbrella
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
macOS Catalina 10.15.3
Additional Detail from JIRA
md5: be86f1fa5faeadff4a24489b5ec66f16
Issue Description:
While building swift/stdlib/public/core I see warning in the build in ArrayBuffer.swift.
Warning is weird since `is` is not casting, it's type checking.
So I tried on the playground and same thing happened.
Type checking returns correct value though, it shows casting warning.
Isn't this a bug? Am I understanding right?
The text was updated successfully, but these errors were encountered: