mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-17 20:10:28 +00:00
1 parent
0df9e8666c
commit
70a7839a31
1 file changed
+1
-1
@@ -491,7 +491,7 @@ auto Interpreter::Convert(Nonnull<const Value*> value,
|
||||
case Value::Kind::StructType: {
|
||||
const auto& destination_struct_type =
|
||||
cast<StructType>(*destination_type);
|
||||
std::vector<StructElement> new_elements;
|
||||
std::vector<NamedValue> new_elements;
|
||||
for (const auto& [field_name, field_type] :
|
||||
destination_struct_type.fields()) {
|
||||
std::optional<Nonnull<const Value*>> old_value =
|
||||
|
||||
Reference in new issue
Block a user