dyaml.node.merge() usage fix.
This commit is contained in:
parent
900bd51d52
commit
f06cb132a3
|
@ -262,7 +262,11 @@ final class Composer
|
|||
foreach(ref Node key, ref Node value; root)
|
||||
{
|
||||
if(key.isType!YAMLMerge){toMerge ~= value;}
|
||||
else{merge(result, Node.Pair(key, value));}
|
||||
else
|
||||
{
|
||||
auto temp = Node.Pair(key, value);
|
||||
merge(result, temp);
|
||||
}
|
||||
}
|
||||
foreach(node; toMerge)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue