mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Performing a related identifiers request on `self` returns an empty result because `self` is not an identifier. We thus can’t retrieve the first location to compute the old name. rdar://121668042
10 lines
183 B
Swift
10 lines
183 B
Swift
struct Test {
|
|
func foo() {
|
|
// RUN: %sourcekitd-test -req=related-idents -pos=%(line + 1):6 %s -- %s | %FileCheck %s
|
|
self
|
|
}
|
|
}
|
|
|
|
// CHECK: START RANGES
|
|
// CHECK-NEXT: END RANGES
|