[SR-10175] Data.withUnsafe(Mutable)Bytes ambiguous with deprecated call #52577
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
10.14.4 (18E226)
Version 10.2 (10E125)
Additional Detail from JIRA
md5: 5e43a1a592c837fcf75a13f51c3d33a3
Issue Description:
Swift 5 deprecated the old method signature of
In foundation they are defined like this:
Unfortunately there is no way to silence this warning, since the compiler always thinks that I am using the dprecated version.
If I change the types to be explicitly
The compiler errors out with
trying to conform to the deprecated version
The text was updated successfully, but these errors were encountered: