mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
383 B
Swift
11 lines
383 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-module-interface(%t/Foo.swiftinterface) %s -module-name Foo
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/Foo.swiftinterface) -module-name Foo
|
|
|
|
public protocol ProtocolA : class {}
|
|
public protocol ProtocolB: ProtocolA {}
|
|
protocol ProtocolC: ProtocolA {}
|
|
|
|
public class A: ProtocolB {}
|
|
public class B: A, ProtocolC {}
|