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

Vijay Nayar <[email protected]> changed:

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

--- Comment #5 from Vijay Nayar <[email protected]> ---
This error is also reproducible using enums, e.g.:
``` d
import std.conv : to;

struct Foo
{
        enum Type { HAM, BREAD }
        Type t;
        void foo() inout
        {
                to!string(this.t);
        }
}

void main()
{
        Foo().foo();
}
```

> /dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(1217): Error: variable 
> `std.conv.value` only parameters or stack based variables can be `inout`

--

Reply via email to