Skip to content

Commit c1e6972

Browse files
Merge pull request #315 from stephentyrone/algebraic-field-magnitude
Constrain AlgebraicField to required Magnitude:AlgebraicField
2 parents 264b171 + da6c765 commit c1e6972

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)