Skip to content

Commit 1a19d0d

Browse files
Merge pull request #318 from stephentyrone/constrain-algebraic-field-1.1
[1.1] Constrain algebraic field to Magnitude: AlgebraicField
2 parents 6bd8a0c + d91884b commit 1a19d0d

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)