mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
7bac130b9c
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
20 lines
653 B
Swift
20 lines
653 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name Indirect -emit-module -emit-module-path %t/
|
|
// RUN: %target-swift-symbolgraph-extract -module-name Indirect -I %t -pretty-print -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/Indirect.symbols.json
|
|
|
|
public protocol P {
|
|
func foo()
|
|
}
|
|
|
|
public protocol Q : P {}
|
|
|
|
extension Q {
|
|
public func foo() {}
|
|
}
|
|
|
|
// CHECK-DAG: "kind": "defaultImplementationOf",{{[[:space:]]*}}"source": "s:8Indirect1QPAAE3fooyyF",{{[[:space:]]*}}"target": "s:8Indirect1PP3fooyyF"
|
|
|
|
// Since foo is a default implementation of a requirement, we don't consider this to be a "member"
|
|
// CHECK-NOT: memberOf
|