Fix test
This commit is contained in:
parent
12ff597f9d
commit
97d996b90c
|
|
@ -196,7 +196,7 @@ unittest {
|
||||||
immutable int x;
|
immutable int x;
|
||||||
}
|
}
|
||||||
Optional!Invalid opt = Optional!(Invalid).of(Invalid(42));
|
Optional!Invalid opt = Optional!(Invalid).of(Invalid(42));
|
||||||
static assert(!__traits(compiles, serializeToJson(opt)));
|
static assert(__traits(compiles, serializeToJson(opt)));
|
||||||
try {
|
try {
|
||||||
deserialize!(Optional!(Invalid))(`{"x": 123}`);
|
deserialize!(Optional!(Invalid))(`{"x": 123}`);
|
||||||
assert(
|
assert(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue