mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
6d3017cde3
Resolves rdar://118904022
16 lines
296 B
Swift
16 lines
296 B
Swift
public protocol MyProto { }
|
|
|
|
public struct MyType {
|
|
private let value: String
|
|
|
|
public init(_ value: String) {
|
|
self.value = value
|
|
}
|
|
|
|
private static let defaultValue = MyType("not me")
|
|
}
|
|
|
|
extension MyType: MyProto {
|
|
static let anotherValue = MyType("also not me")
|
|
}
|