mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Doing so will cause linkage errors and is not neccessary since we call the witness of the enclosing type as soon as its fields are not ABI accessible. rdar://40868358
14 lines
173 B
Swift
14 lines
173 B
Swift
private struct Private<T> {
|
|
init(_ t: T) {
|
|
p = t
|
|
}
|
|
var p : T
|
|
}
|
|
|
|
public struct Public<T> {
|
|
init(_ t: T) {
|
|
p = Private<T>(t)
|
|
}
|
|
private var p: Private<T>
|
|
}
|