https://issues.dlang.org/show_bug.cgi?id=2788
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #2 from RazvanN <[email protected]> --- `getVar()` is an rvalue, therefore it cannot be passed to a ref parameter. Therefore the bug report is invalid. >struct A {} >void foo(ref A a) {} >void main() >{ > foo(A()); >} This doesn't compiler and neither does this: >static A bar() >{ > return A(); >} > >foo(bar()); Closing as invalid. --
