I am using DMD 2.057 on Ubuntu 64bit. Are you sure that it does not work? Can anyone reproduce the error?

import std.variant;
struct Foo {
     Variant a;
     ref Variant refA(){
         return a;
     }
}
void main(){
     Foo f1;
     f1.refA() = 24;
}

Compiles fine on Ubuntu x64 with git dmd and -m(32|64)

Reply via email to