Skip to content

Commit

Permalink
Make 'ForeignConvertible' a refinement of 'Equatable'
Browse files Browse the repository at this point in the history
  • Loading branch information
kyouko-taiga committed Oct 10, 2023
1 parent 0649023 commit a7b0526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Hylo/Core/ForeignConvertible.hylo
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
///
/// You should avoid using `ForeignConvertible` to implement long chains of conversions through
/// intermediate foreign representations.
public trait ForeignConvertible {
public trait ForeignConvertible: Equatable {

/// The foreign representation of the type.
type ForeignRepresentation: ForeignConvertible
type ForeignRepresentation

/// Creates a new instance from its foreign representation.
init(foreign_value: sink ForeignRepresentation)
Expand Down

0 comments on commit a7b0526

Please sign in to comment.