mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
1.0 KiB
Swift
21 lines
1.0 KiB
Swift
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify
|
|
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted
|
|
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple %s -emit-sil -o /dev/null -verify -strict-concurrency=complete
|
|
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: libdispatch
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
@rethrows
|
|
protocol TGP: AsyncSequence, AsyncIteratorProtocol { }
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
extension TaskGroup: TGP { }
|
|
// expected-warning@-1{{extension declares a conformance of imported type 'TaskGroup' to imported protocol 'AsyncIteratorProtocol'}}
|
|
// expected-note@-2{{add '@retroactive' to silence this warning}}
|
|
|
|
@available(SwiftStdlib 5.1, *)
|
|
extension ThrowingTaskGroup: TGP { }
|
|
// expected-warning@-1{{extension declares a conformance of imported type 'ThrowingTaskGroup' to imported protocol 'AsyncIteratorProtocol'}}
|
|
// expected-note@-2{{add '@retroactive' to silence this warning}}
|