Open
Description
Description
In result of using tick masked variable names, refactoring destroy working code when rename method.
Reproduction
Use refactor -> rename on search to new name "looking"
import Foundation
public func search (for : String, in : [String]) {
for next in `in` {
if next == `for` {
print ("Equals")
}
}
}
Expected behavior
Refactoring only change the method name not secondary variable names
Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Additional information
RefactoringTickError-2.mp4
Metadata
Metadata
Assignees
Labels
Feature → identifiers: Backticked identifiers. Allows using reserved words as identifiersA deviation from expected or documented behavior. Also: expected but undesirable behavior.Area → source tooling: refactoringArea: IDE support, SourceKit, and other source toolingBug: Unexpected behavior or incorrect output