eg, the following code should compile: void main() { int x; ((ref a)=>a+=1)(x); x=((immutable a)=>a+1)(x); }
TDPL assumes this works on p.369. Raising from enhancement to TDPL bug.
The test case works with 2.059head. It seems to me that this is a dup of bug 7705, and it is already fixed.
ok. *** This issue has been marked as a duplicate of issue 7705 ***