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

Atila Neves <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Atila Neves <[email protected]> ---
This compiles and works as intended though:

import std.stdio;

void fun(T)(auto ref T x) {
    static if(__traits(isRef, x))
        writeln("x: ", x, " is a ref");
    else
        writeln("x: ", x, " is NOT a ref");
}


void main() {
    fun(42);
    int i;
    fun(i);
}

--

Reply via email to