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

--- Comment #10 from [email protected] ---
(In reply to rswhite4 from comment #9)

> auto ref U[N] s(U, alias N)(auto ref U[N] arr) pure nothrow @safe @property
> @nogc 
>       if (__traits(compiles, { size_t i = N; }))

Simpler:

auto ref U[N] s(U, size_t N)(auto ref U[N] arr)
pure nothrow @safe @property @nogc {
    return arr;
}

--

Reply via email to