update examples so they can compile again, and make them visible to dub
This commit is contained in:
parent
b44f96bd9f
commit
4680e1b5b2
15 changed files with 57 additions and 54 deletions
|
@ -5,6 +5,6 @@
|
|||
"mainSourceFile": "main.d",
|
||||
"dependencies":
|
||||
{
|
||||
"dyaml": { "version" : "~>0.5.0" },
|
||||
},
|
||||
"dyaml": { "version" : "*" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import std.stdio;
|
||||
import dyaml.all;
|
||||
import dyaml;
|
||||
|
||||
struct Color
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ struct Color
|
|||
}
|
||||
}
|
||||
|
||||
Node representColor(ref Node node, Representer representer)
|
||||
Node representColor(ref Node node, Representer representer) @safe
|
||||
{
|
||||
//The node is guaranteed to be Color as we add representer for Color.
|
||||
Color color = node.as!Color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue