Check if an instance of a sumtype contains the specific type.
This is from the D forum by Paul Backus, the author of sumtype.
assert(someType.contains!int);
See Implementation
Check if an instance of a sumtype contains the specific type.
This is from the D forum by Paul Backus, the author of sumtype.