mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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")
|
|
}
|