@@ -110,7 +110,7 @@ public func < (
110
110
///
111
111
/// This type can be used to check that generic functions don't rely on any
112
112
/// other conformances.
113
- public ${ decl_keyword} ${ Self} : Equatable, Hashable {
113
+ public ${ decl_keyword} ${ Self} : Equatable, Hashable, CustomStringConvertible {
114
114
public static var timesEqualEqualWasCalled : Int = 0
115
115
public static var timesHashIntoWasCalled : Int = 0
116
116
@@ -142,6 +142,10 @@ public ${decl_keyword} ${Self} : Equatable, Hashable {
142
142
${ Self} . timesHashIntoWasCalled += 1
143
143
${ Self} . hashIntoImpl. value ( value, & hasher)
144
144
}
145
+
146
+ public var description : String {
147
+ return " ${Self}(value: \( value) , identity: \( identity) ) "
148
+ }
145
149
}
146
150
147
151
public func == (
@@ -170,7 +174,8 @@ public var ${Self}_hashIntoImpl = ResettableValue<(Any, inout _Hasher) -> Void>(
170
174
///
171
175
/// This type can be used to check that generic functions don't rely on any
172
176
/// other conformances.
173
- public ${ decl_keyword} ${ Self} < Wrapped> : Equatable, Hashable {
177
+ public ${ decl_keyword} ${ Self} < Wrapped>
178
+ : Equatable, Hashable, CustomStringConvertible {
174
179
public var value: Wrapped
175
180
public var identity : Int
176
181
@@ -193,6 +198,10 @@ public ${decl_keyword} ${Self}<Wrapped> : Equatable, Hashable {
193
198
${ Self} _timesHashIntoWasCalled += 1
194
199
return ${ Self} _hashIntoImpl. value ( value, & hasher)
195
200
}
201
+
202
+ public var description : String {
203
+ return " ${Self}(value: \( value) , identity: \( identity) ) "
204
+ }
196
205
}
197
206
198
207
public func == < Wrapped> (
0 commit comments