alias R = Result!(Result!int); static assert(is(typeof(R.init.flatten()) == Result!int)); assert(R.ok(3.ok).flatten() == 3.ok); assert(R.err("failure").flatten() == "failure".err);
See Implementation