mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
438 B
Swift
22 lines
438 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift -emit-module -o %t/Lib.swiftmodule %s -DLIB
|
|
// RUN: %target-build-swift -emit-module -o %t/main.swiftmodule -I %t %s
|
|
|
|
// https://github.com/apple/swift/issues/49885
|
|
|
|
#if LIB
|
|
|
|
protocol Proto {}
|
|
|
|
open class Base<T> {}
|
|
public struct ArbitraryStruct {}
|
|
|
|
extension Base: Proto where T: Proto {}
|
|
|
|
#else // LIB
|
|
|
|
import Lib
|
|
|
|
final class ConcreteSub: Base<ArbitraryStruct> {}
|
|
|
|
#endif // LIB |