mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Properties can also be specified in a protocol/overridden by subclasses, so they should also be classed as "dynamic" in these cases. Removed receiver USRs when *not* dynamic, since it's not used for anything in that case and should be equivalent to the container anyway. Resolves rdar://92882348.
13 lines
518 B
Swift
13 lines
518 B
Swift
// RUN: %target-swift-ide-test -print-indexed-symbols -source-filename %s | %FileCheck %s
|
|
|
|
struct SomeStruct {
|
|
func simple(_ someClosure: () -> Void) { }
|
|
}
|
|
|
|
func test(s: SomeStruct) {
|
|
s.simple { }
|
|
// CHECK: [[@LINE-1]]:5 | instance-method/Swift | simple(_:) | s:14swift_ide_test10SomeStructV6simpleyyyyXEF | Ref,Call,RelCall,RelCont | rel: 1
|
|
(((s).simple)) { }
|
|
// CHECK: [[@LINE-1]]:9 | instance-method/Swift | simple(_:) | s:14swift_ide_test10SomeStructV6simpleyyyyXEF | Ref,Call,RelCall,RelCont | rel: 1
|
|
}
|