Skip to content

Commit 7a41962

Browse files
committed
Fix SemiRegular.
Fixes #1620. Another pass to loosen some constraints now that SemiRegular refines Copyable is warranted.
1 parent 02a00f3 commit 7a41962

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

StandardLibrary/Sources/Array.hylo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public type Array<Element: SemiRegular>: SemiRegular {
207207

208208
}
209209

210-
public conformance Array: Equatable {
210+
public conformance Array: Equatable where Element: Equatable {
211211

212212
/// Returns `true` iff `other` has an equivalent value.
213213
public fun infix== (_ other: Self) -> Bool {

StandardLibrary/Sources/Core/Regular.hylo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
///
44
/// - Move is value-preserving.
55
/// - Destruction has no side-effects.
6-
public trait SemiRegular: Deinitializable, Movable, Equatable {}
6+
public trait SemiRegular: Copyable, Deinitializable {}
77

88
/// Regular types (roughly per Stepanov).
99
///
1010
/// Copies have equal value.
11-
public trait Regular: SemiRegular, Copyable {}
11+
public trait Regular: SemiRegular, Equatable {}

0 commit comments

Comments
 (0)