mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, we only walked the parent scope of the decl context that declared the value to rename if it was a TopLevelCodeDecl. But also functions can have locally declared types that can be used in sibling scopes. Thus, we always need to walk the parent DeclContext of the one declaring the value we are renaming. rdar://89836229
10 lines
94 B
Plaintext
10 lines
94 B
Plaintext
func boop() {
|
|
enum LocalEnum {
|
|
case east
|
|
case south
|
|
}
|
|
|
|
print(LocalEnum.east)
|
|
}
|
|
|