alias O = Optional!(Optional!int); static assert(is(typeof(O.init.flatten()) == Optional!int)); assert(O.some(3.some).flatten() == 3.some); assert(O.none.flatten() == none);
See Implementation