[SR-14649] Incorrect warning - 'unsafeBitCast' from 'PartialKeyPath<Object>' to 'PartialKeyPath<T>' can be replaced with 'unsafeDowncast' #57001
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
casting
Feature: explicit casting (is, as, as? and as!)
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
generics
Feature: generic declarations and types
swift 5.9
type checker
Area → compiler: Semantic analysis
unexpected warning
Bug: Unexpected warning
Additional Detail from JIRA
md5: 1cb28da019f7958df1fc3fa446f6bad2
Issue Description:
The warning produced when trying to use
unsafeBitCast
andPartialKeyPath
objects is incorrect, it is warning that it should be replaced withunsafeDowncast
which is incorrect.The reason I am trying this at all is that I wanted to mimic and use the super-type KeyPath on a subtype
The text was updated successfully, but these errors were encountered: