You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lorentey opened this issue
Aug 19, 2021
· 3 comments
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfparserArea → compiler: The legacy C++ parser
There seems to be no way to deprecate a member and retarget its invocations to a subscript. The `renamed:` argument of a deprecation doesn't accept a reference to a subscript member.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfparserArea → compiler: The legacy C++ parser
Environment
Swift 5.5
Additional Detail from JIRA
md5: acef0dcda495bb440a5b5d69c2acfa3f
Issue Description:
There seems to be no way to deprecate a member and retarget its invocations to a subscript. The `renamed:` argument of a deprecation doesn't accept a reference to a subscript member.
I expected something like this would work:
Unfortunately, the resulting fix-it changes `self[42]` into `self.subscript`, which loses information, and doesn't even compile.
The text was updated successfully, but these errors were encountered: