@@ -2348,11 +2348,8 @@ ${operatorComment('&' + x.operator, True)}
2348
2348
//===----------------------------------------------------------------------===//
2349
2349
2350
2350
/// An integer type that can represent only nonnegative values.
2351
- public protocol UnsignedInteger : BinaryInteger {
2352
- /// A type that can represent the absolute value of any possible value of the
2353
- /// conforming type.
2354
- associatedtype Magnitude : BinaryInteger
2355
- }
2351
+ public protocol UnsignedInteger : BinaryInteger
2352
+ where Magnitude : BinaryInteger { }
2356
2353
2357
2354
extension UnsignedInteger {
2358
2355
/// The magnitude of this value.
@@ -2458,11 +2455,8 @@ extension UnsignedInteger where Self : FixedWidthInteger {
2458
2455
//===----------------------------------------------------------------------===//
2459
2456
2460
2457
/// An integer type that can represent both positive and negative values.
2461
- public protocol SignedInteger : BinaryInteger, SignedNumeric {
2462
- /// A type that can represent the absolute value of any possible value of the
2463
- /// conforming type.
2464
- associatedtype Magnitude : BinaryInteger
2465
-
2458
+ public protocol SignedInteger : BinaryInteger, SignedNumeric
2459
+ where Magnitude : BinaryInteger {
2466
2460
// These requirements are for the source code compatibility with Swift 3
2467
2461
static func _maskingAdd( _ lhs: Self, _ rhs: Self) - > Self
2468
2462
static func _maskingSubtract( _ lhs: Self , _ rhs: Self ) -> Self
0 commit comments