@@ -160,6 +160,9 @@ public macro require<T>(
160
160
/// is running in the current task. Any value returned by `expression` is
161
161
/// discarded.
162
162
///
163
+ /// - Note: If you use this macro with a Swift compiler version lower than 6.1,
164
+ /// it doesn't return a value.
165
+ ///
163
166
/// If the thrown error need only equal another instance of [`Error`](https://developer.apple.com/documentation/swift/error),
164
167
/// use ``expect(throws:_:sourceLocation:performing:)-7du1h`` instead.
165
168
///
@@ -224,6 +227,9 @@ public macro require<T>(
224
227
/// is running in the current task and an instance of ``ExpectationFailedError``
225
228
/// is thrown. Any value returned by `expression` is discarded.
226
229
///
230
+ /// - Note: If you use this macro with a Swift compiler version lower than 6.1,
231
+ /// it doesn't return a value.
232
+ ///
227
233
/// If the thrown error need only equal another instance of [`Error`](https://developer.apple.com/documentation/swift/error),
228
234
/// use ``require(throws:_:sourceLocation:performing:)-4djuw`` instead.
229
235
///
@@ -286,6 +292,9 @@ public macro require<R>(
286
292
/// not equal to `error`, an ``Issue`` is recorded for the test that is running
287
293
/// in the current task. Any value returned by `expression` is discarded.
288
294
///
295
+ /// - Note: If you use this macro with a Swift compiler version lower than 6.1,
296
+ /// it doesn't return a value.
297
+ ///
289
298
/// If the thrown error need only be an instance of a particular type, use
290
299
/// ``expect(throws:_:sourceLocation:performing:)-1hfms`` instead.
291
300
@discardableResult
@@ -327,6 +336,9 @@ public macro require<R>(
327
336
/// in the current task and an instance of ``ExpectationFailedError`` is thrown.
328
337
/// Any value returned by `expression` is discarded.
329
338
///
339
+ /// - Note: If you use this macro with a Swift compiler version lower than 6.1,
340
+ /// it doesn't return a value.
341
+ ///
330
342
/// If the thrown error need only be an instance of a particular type, use
331
343
/// ``require(throws:_:sourceLocation:performing:)-7n34r`` instead.
332
344
@discardableResult
0 commit comments