Skip to content

Commit

Permalink
Declare conditional conformance of 'Optional' to 'Equatable'
Browse files Browse the repository at this point in the history
  • Loading branch information
kyouko-taiga committed Aug 22, 2024
1 parent 917ea30 commit 5c61e65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions StandardLibrary/Sources/Core/Optional.hylo
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ public extension Optional {
}

}

// Note: We can't declare confitional conformance of `Optional` to "umbrella traits" yet without
// causing ambiguities. See #1566

public conformance Optional: Deinitializable where T: Deinitializable {}

public conformance Optional: Equatable where T: Equatable {}

0 comments on commit 5c61e65

Please sign in to comment.