mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
18 lines
553 B
Swift
18 lines
553 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 {
|
|
associatedtype Thing
|
|
func foo()
|
|
}
|
|
|
|
public protocol Q : P {}
|
|
|
|
extension Q {
|
|
public func foo() {}
|
|
}
|
|
|
|
// CHECK-DAG: "kind": "defaultImplementationOf",{{[[:space:]]*}}"source": "s:8Indirect1QPAAE3fooyyF",{{[[:space:]]*}}"target": "s:8Indirect1PP3fooyyF"
|