mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 14:16:37 +00:00
Fix equality for tuples (#446)
* fix tuple equality, added test cases * added a comment to an old function * Update executable_semantics/interpreter/value.cpp Co-authored-by: Geoff Romer <gromer@google.com> * fix error in Geoffrey's edit Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
1 parent
6639a915dc
commit
c1d651fc15
10 files changed
+77
-4
No files matched your search
@@ -17,6 +17,7 @@ namespace Carbon {
|
||||
struct Value;
|
||||
using Address = unsigned int;
|
||||
using VarValues = std::list<std::pair<std::string, const Value*>>;
|
||||
using VarAddresses = std::vector<std::pair<std::string, Address>>;
|
||||
|
||||
auto FindInVarValues(const std::string& field, VarValues* inits)
|
||||
-> const Value*;
|
||||
@@ -81,7 +82,7 @@ struct Value {
|
||||
} alt;
|
||||
|
||||
struct {
|
||||
std::vector<std::pair<std::string, Address>>* elts;
|
||||
VarAddresses* elts;
|
||||
} tuple;
|
||||
|
||||
Address ptr;
|
||||
|
||||
Reference in new issue
Block a user