mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
378 B
Swift
17 lines
378 B
Swift
// RUN: %target-swift-frontend -emit-ir %s -disable-availability-checking
|
|
|
|
protocol SomeObjectProtocol {}
|
|
|
|
struct SomeObject: SomeObjectProtocol {}
|
|
|
|
protocol ObjectProviding {
|
|
associatedtype Object: SomeObjectProtocol
|
|
var object: Object { get }
|
|
}
|
|
|
|
struct ConformingObject<each B>: ObjectProviding {
|
|
var object: some SomeObjectProtocol {
|
|
SomeObject()
|
|
}
|
|
}
|