dyaml.node.merge() usage fix.

This commit is contained in:
Kiith-Sa 2012-12-27 22:00:31 +01:00
parent 900bd51d52
commit f06cb132a3
2 changed files with 7 additions and 3 deletions

View file

@ -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)
{