[SR-4949] No error for using 'as' patterns with CF types #47526
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
Additional Detail from JIRA
md5: 62d9e9e2da2d4b28fa3d10ebd350dba6
Issue Description:
We should warn here that we can't actually do checked downcasts for CF types, like we do with
as?
.We can't make it an error because that would break source compatibility, but at least a warning will work. The best workaround today (and a possible fix-it):
The text was updated successfully, but these errors were encountered: