-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stdlib] Make Optional, Array and Dictionary conditionally Equatable.
- Loading branch information
1 parent
44d8720
commit 39e0a95
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,7 +313,7 @@ func _diagnoseUnexpectedNilOptional(_filenameStart: Builtin.RawPointer, | |
line: UInt(_line)) | ||
} | ||
|
||
extension Optional where Wrapped : Equatable { | ||
extension Optional : Equatable where Wrapped : Equatable { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
DougGregor
Member
|
||
/// Returns a Boolean value indicating whether two optional instances are | ||
/// equal. | ||
/// | ||
|
Could the
!=
-Method be removed, as it is now auto-generated viaEquatable
-conformance?