The OpenD Programming Language

SomeVariant

Gets subtype of algebraic without types for which isErr is true.

Examples

@reflectErr static struct ErrorS { }
alias V = Variant!(ErrorS, Err!string, long, double, This[]);
static assert(is(SomeVariant!V == Variant!(long, double, This[])));

Meta