mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
21 lines
251 B
Swift
21 lines
251 B
Swift
public protocol Proto {
|
|
func wellNow()
|
|
}
|
|
|
|
|
|
public struct Impl {
|
|
var x: Int
|
|
public init() {
|
|
x = 9
|
|
}
|
|
}
|
|
|
|
public struct Container<T: Proto> {
|
|
public var contained : T
|
|
public init(_ i: T) {
|
|
contained = i
|
|
}
|
|
}
|
|
|
|
public var any : Any = 0
|