Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar113463759.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()
}
}