struct Foo { } Foo foo() { Foo _foo; return _foo; } void main() { with (foo()) { } } Error: foo() is not an lvalue For me this is particularly a problem when using property functions.
*** This issue has been marked as a duplicate of issue 6685 ***