File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -667,6 +667,12 @@ extension Any${Kind} {
667
667
whereSeparator: isSeparator)
668
668
}
669
669
670
+ public func _customContainsEquatableElement(
671
+ _ element: Element
672
+ ) -> Bool ? {
673
+ return _box. __customContainsEquatableElement ( element)
674
+ }
675
+
670
676
public func _preprocessingPass< R> (
671
677
_ preprocess: ( ) throws -> R
672
678
) rethrows -> R ? {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ tests.test("AnySequence.init(() -> Generator)") {
135
135
% MinimalBase = 'Minimal' + collectionForTraversal( Traversal)
136
136
% end
137
137
138
- tests. test ( " ${TestedType}: dispatch to wrapped " ) {
138
+ tests. test ( " ${TestedType}: dispatch to wrapped, SequenceLog " ) {
139
139
typealias Base = ${ LoggingWrapper} < ${ MinimalBase} < OpaqueValue< Int>>>
140
140
typealias Log = SequenceLog
141
141
let base = Base ( wrapping:
@@ -191,6 +191,10 @@ tests.test("${TestedType}: dispatch to wrapped") {
191
191
_ = s. split { ( _) in true }
192
192
}
193
193
194
+ Log . _customContainsEquatableElement. expectIncrement ( Base . self) {
195
+ _ = s. _customContainsEquatableElement ( OpaqueValue ( 42 ) )
196
+ }
197
+
194
198
Log . _preprocessingPass. expectIncrement ( Base . self) {
195
199
_ = s. _preprocessingPass { }
196
200
}
@@ -210,7 +214,7 @@ tests.test("${TestedType}: dispatch to wrapped") {
210
214
}
211
215
212
216
% if Traversal != 'Sequence':
213
- tests. test( " ${TestedType}: dispatch to wrapped " ) {
217
+ tests. test( " ${TestedType}: dispatch to wrapped, CollectionLog " ) {
214
218
typealias Base = ${ LoggingWrapper} < ${ MinimalBase} < OpaqueValue< Int>>>
215
219
typealias Log = CollectionLog
216
220
let base = Base ( wrapping:
You can’t perform that action at this time.
0 commit comments