mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
To differentiate between freestanding extensions of protocols and matching default implementations with their requirements. Otherwise, it's difficult to filter out "duplicate" entries for protocols. rdar://61459287
12 lines
422 B
Swift
12 lines
422 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name Basic -emit-module -emit-module-path %t/
|
|
// RUN: %target-swift-symbolgraph-extract -module-name Basic -I %t -pretty-print -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/Basic.symbols.json
|
|
public struct S {
|
|
public var x: Int
|
|
}
|
|
|
|
// CHECK: "kind": "memberOf"
|
|
// CHECK-NEXT: "source": "s:5Basic1SV1xSivp"
|
|
// CHECK-NEXT: "target": "s:5Basic1SV"
|