https://issues.dlang.org/show_bug.cgi?id=14867

--- Comment #1 from ZombineDev <[email protected]> ---
Example:

struct JsonValue
{
    alias JSON = Algebraic!(
        typeof(null),
        bool,
        double,
        long,
        BigInt,
        string,
        JSONValue[],
        JSONValue[string]
    );

    JSON storage;

    // Should work like ddoc-ed unittests:
    ///
    alias storage this;
}

--

Reply via email to