mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
20 lines
545 B
Swift
20 lines
545 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name SkipInheritedDocs -emit-module-path %t/SkipInheritedDocs.swiftmodule
|
|
// RUN: %target-swift-symbolgraph-extract -module-name SkipInheritedDocs -I %t -pretty-print -skip-inherited-docs -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/SkipInheritedDocs.symbols.json
|
|
|
|
/// Parent docs.
|
|
public protocol P1 {
|
|
/// Parent func docs.
|
|
func p2()
|
|
}
|
|
|
|
/// Child docs
|
|
public class C1: P1 {
|
|
public func p2() {}
|
|
}
|
|
|
|
// CHECK: "Parent func docs."
|
|
// CHECK-NOT: "Parent func docs."
|
|
|