mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Support for user-defined Eq impls (#1730)
Related to #1549; user-defined equality is a prerequisite for user-defined comparison.
This commit is contained in:
-3
@@ -14,9 +14,6 @@ package ExplorerTest api;
|
||||
fn Main() -> i32 {
|
||||
var empty: {} = {};
|
||||
empty = {};
|
||||
if (not (empty == {})) {
|
||||
return 1;
|
||||
}
|
||||
match (empty) {
|
||||
case {} => {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user