Skip to content

Commit d91884b

Browse files
committed
Merge pull request #315 from stephentyrone/algebraic-field-magnitude
Constrain AlgebraicField to required Magnitude:AlgebraicField
1 parent fd82b65 commit d91884b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RealModule/AlgebraicField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/// See also `Real`, `SignedNumeric`, `Numeric` and `AdditiveArithmetic`.
4141
///
4242
/// [field]: https://en.wikipedia.org/wiki/Field_(mathematics)
43-
public protocol AlgebraicField: SignedNumeric {
43+
public protocol AlgebraicField: SignedNumeric where Magnitude: AlgebraicField {
4444

4545
/// Replaces a with the (approximate) quotient `a/b`.
4646
static func /=(a: inout Self, b: Self)

0 commit comments

Comments
 (0)