Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8566] Refactoring: Local rename fails when invoked on type parameter used as the base of an initializer call #51084

Open
nathawes opened this issue Aug 17, 2018 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. refactoring Area → source tooling: refactoring

Comments

@nathawes
Copy link
Collaborator

Previous ID SR-8566
Radar rdar://problem/41229086
Original Reporter @nathawes
Type Bug
Environment

Xcode 10 beta 6 with August 14 swift.org dev toolchain

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug, Refactoring
Assignee None
Priority Medium

md5: 6ff9cd7230191d51b829bd653379018e

Issue Description:

Reproducer 1:

public protocol Mappable {
    init(map: String)
}

func foo<T>(x: T) where T: Mappable {
  /*try to rename T from here:*/T(map: "")
}

Reproducer 2:

extension Array where Element: FixedWidthInteger {
  mutating func blah() {
    typealias Word = Element
    self.append(/*try to rename Word from here:*/Word())
  }
}
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. refactoring Area → source tooling: refactoring
Projects
None yet
Development

No branches or pull requests

1 participant