Files

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()
}
}