mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
[BasicContainers] RigidArray,UniqueArray: Add FIXME for Custom[Debug]StringConvertible conformances
This commit is contained in:
1 file changed
+17
-2
@@ -13,20 +13,35 @@
|
||||
|
||||
#if compiler(>=6.2)
|
||||
|
||||
// FIXME: Add this when/if SE-0499 gets implemented.
|
||||
//#if compiler(>=6.x)
|
||||
//@available(SwiftStdlib 5.0, *)
|
||||
//extension RigidArray: CustomStringConvertible where Element: ~Copyable {
|
||||
//}
|
||||
//#endif
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
extension RigidArray /*: CustomStringConvertible */ where Element: ~Copyable {
|
||||
extension RigidArray where Element: ~Copyable {
|
||||
public var description: String {
|
||||
/// FIXME: Print the item descriptions when available.
|
||||
"<\(count) items>"
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: Add this when/if SE-0499 gets implemented.
|
||||
//#if compiler(>=6.5)
|
||||
//@available(SwiftStdlib 5.0, *)
|
||||
//extension RigidArray: CustomDebugStringConvertible where Element: ~Copyable {
|
||||
//}
|
||||
//#endif
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
extension RigidArray /*: CustomDebugStringConvertible */ where Element: ~Copyable {
|
||||
extension RigidArray where Element: ~Copyable {
|
||||
public var debugDescription: String {
|
||||
/// FIXME: Print the item descriptions when available.
|
||||
"<\(count) items>"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user