Fix bug from #909 (#924)

This commit is contained in:
Geoff Romer
2021-10-27 17:09:03 -07:00
committed by GitHub
parent 0df9e8666c
commit 70a7839a31
@@ -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 =