mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
408 B
Swift
19 lines
408 B
Swift
// RUN: %target-swift-frontend -emit-ir %s
|
|
|
|
// https://github.com/apple/swift/issues/48395
|
|
|
|
public struct DefaultAssociatedType {
|
|
}
|
|
|
|
protocol Protocol {
|
|
associatedtype AssociatedType = DefaultAssociatedType
|
|
init(object: AssociatedType)
|
|
}
|
|
|
|
public final class Conformance: Protocol {
|
|
private let object: AssociatedType
|
|
public init(object: AssociatedType) {
|
|
self.object = object
|
|
}
|
|
}
|