mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
222 B
Swift
12 lines
222 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -enable-experimental-concurrency
|
|
// REQUIRES: concurrency
|
|
|
|
protocol P {
|
|
func f<T>() async throws -> T?
|
|
}
|
|
extension P {
|
|
func f<T>() async throws -> T? { nil }
|
|
}
|
|
class X: P {}
|
|
|