@@ -131,7 +131,6 @@ public macro require<T>(
131
131
132
132
// MARK: - Matching errors by type
133
133
134
- #if compiler(>=6.2)
135
134
/// Check that an expression always throws an error of a given type.
136
135
///
137
136
/// - Parameters:
@@ -197,7 +196,6 @@ public macro expect<E, R>(
197
196
sourceLocation: SourceLocation = #_sourceLocation,
198
197
performing expression: ( ) throws -> R
199
198
) -> E ? = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " ) where E: Error
200
- #endif
201
199
202
200
/// Check that an expression always throws an error of a given type.
203
201
///
@@ -263,7 +261,6 @@ public macro expect<E, R>(
263
261
performing expression: ( ) async throws -> R
264
262
) -> E ? = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " ) where E: Error
265
263
266
- #if compiler(>=6.2)
267
264
/// Check that an expression always throws an error of a given type, and throw
268
265
/// an error if it does not.
269
266
///
@@ -313,7 +310,6 @@ public macro require<E, R>(
313
310
sourceLocation: SourceLocation = #_sourceLocation,
314
311
performing expression: ( ) throws -> R
315
312
) -> E = #externalMacro( module: " TestingMacros " , type: " RequireThrowsMacro " ) where E: Error
316
- #endif
317
313
318
314
/// Check that an expression always throws an error of a given type, and throw
319
315
/// an error if it does not.
@@ -363,7 +359,6 @@ public macro require<E, R>(
363
359
performing expression: ( ) async throws -> R
364
360
) -> E = #externalMacro( module: " TestingMacros " , type: " RequireThrowsMacro " ) where E: Error
365
361
366
- #if compiler(>=6.2)
367
362
/// Check that an expression never throws an error, and throw an error if it
368
363
/// does.
369
364
///
@@ -383,7 +378,6 @@ public macro require<R>(
383
378
sourceLocation: SourceLocation = #_sourceLocation,
384
379
performing expression: ( ) throws -> R
385
380
) = #externalMacro( module: " TestingMacros " , type: " RequireThrowsNeverMacro " )
386
- #endif
387
381
388
382
/// Check that an expression never throws an error, and throw an error if it
389
383
/// does.
@@ -407,7 +401,6 @@ public macro require<R>(
407
401
408
402
// MARK: - Matching instances of equatable errors
409
403
410
- #if compiler(>=6.2)
411
404
/// Check that an expression always throws a specific error.
412
405
///
413
406
/// - Parameters:
@@ -449,7 +442,6 @@ public macro expect<E, R>(
449
442
sourceLocation: SourceLocation = #_sourceLocation,
450
443
performing expression: ( ) throws -> R
451
444
) -> E ? = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " ) where E: Error & Equatable
452
- #endif
453
445
454
446
/// Check that an expression always throws a specific error.
455
447
///
@@ -491,7 +483,6 @@ public macro expect<E, R>(
491
483
performing expression: ( ) async throws -> R
492
484
) -> E ? = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " ) where E: Error & Equatable
493
485
494
- #if compiler(>=6.2)
495
486
/// Check that an expression always throws a specific error, and throw an error
496
487
/// if it does not.
497
488
///
@@ -537,7 +528,6 @@ public macro require<E, R>(
537
528
sourceLocation: SourceLocation = #_sourceLocation,
538
529
performing expression: ( ) throws -> R
539
530
) -> E = #externalMacro( module: " TestingMacros " , type: " RequireMacro " ) where E: Error & Equatable
540
- #endif
541
531
542
532
/// Check that an expression always throws a specific error, and throw an error
543
533
/// if it does not.
@@ -585,7 +575,6 @@ public macro require<E, R>(
585
575
586
576
// MARK: - Arbitrary error matching
587
577
588
- #if compiler(>=6.2)
589
578
/// Check that an expression always throws an error matching some condition.
590
579
///
591
580
/// - Parameters:
@@ -649,7 +638,6 @@ public macro expect<R>(
649
638
performing expression: ( ) throws -> R ,
650
639
throws errorMatcher: ( any Error ) throws -> Bool
651
640
) -> ( any Error ) ? = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " )
652
- #endif
653
641
654
642
/// Check that an expression always throws an error matching some condition.
655
643
///
@@ -713,7 +701,6 @@ public macro expect<R>(
713
701
throws errorMatcher: ( any Error ) async throws -> Bool
714
702
) -> ( any Error ) ? = #externalMacro( module: " TestingMacros " , type: " ExpectMacro " )
715
703
716
- #if compiler(>=6.2)
717
704
/// Check that an expression always throws an error matching some condition, and
718
705
/// throw an error if it does not.
719
706
///
@@ -784,7 +771,6 @@ public macro require<R>(
784
771
performing expression: ( ) throws -> R ,
785
772
throws errorMatcher: ( any Error ) throws -> Bool
786
773
) -> any Error = #externalMacro( module: " TestingMacros " , type: " RequireMacro " )
787
- #endif
788
774
789
775
/// Check that an expression always throws an error matching some condition, and
790
776
/// throw an error if it does not.
0 commit comments