fix double params

This commit is contained in:
Nikita Vasilev 2020-04-23 22:07:03 +03:00
parent 60648b3d49
commit a908576033

View File

@ -67,6 +67,8 @@ ASTPtr ASTDictionaryLayout::clone() const
auto res = std::make_shared<ASTDictionaryLayout>(*this); auto res = std::make_shared<ASTDictionaryLayout>(*this);
res->children.clear(); res->children.clear();
res->layout_type = layout_type; res->layout_type = layout_type;
res->parameters.clear();
res->has_brackets = has_brackets;
for (const auto & parameter : parameters) for (const auto & parameter : parameters)
{ {
res->parameters.emplace_back(parameter.first, nullptr); res->parameters.emplace_back(parameter.first, nullptr);