mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
`printModuleInterfaceDecl` printes extensions right after the type they are associated with is printed. Extensions associated with a type that appears in the "target" module shouldn't be added to `SwiftDecls` because that would lead to double printing them.
21 lines
494 B
Swift
21 lines
494 B
Swift
// RUN: %target-swift-synthesize-interface -module-name TestExt -F %S/Inputs/Frameworks -o - | %FileCheck %s
|
|
|
|
// REQUIRES: OS=macosx && CPU=arm64
|
|
|
|
// CHECK: open class MyType
|
|
|
|
// CHECK: extension MyType {
|
|
// CHECK: public struct MyInnerType {
|
|
// CHECK: public func test()
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK-NOT: public struct MyInnerType
|
|
|
|
// CHECK: extension Int {
|
|
// CHECK: public struct OtherInnerType {
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK-NOT: public struct MyInnerType
|