diff --git a/source/taggedalgebraic.d b/source/taggedalgebraic.d index 18a12d7..40e0ad9 100644 --- a/source/taggedalgebraic.d +++ b/source/taggedalgebraic.d @@ -603,7 +603,8 @@ unittest { // issue #1 */ ref inout(T) get(T, U)(ref inout(TaggedAlgebraic!U) ta) { - assert(hasType!(T, U)(ta)); + import std.format : format; + assert(hasType!(T, U)(ta), () { scope (failure) assert(false); return format("Trying to get %s but have %s.", T.stringof, ta.kind); } ()); return ta.trustedGet!T; }