https://issues.dlang.org/show_bug.cgi?id=12650
--- Comment #1 from Kenji Hara <k.hara...@gmail.com> --- (In reply to Temtaime from comment #0) > 2.065 output : 2 I think this is git-head only regression. Because the OP code cannot compile with 2.065: $ dmd -run test test.d(10): Error: function test.foo (ref const(S) s) is not callable using argument types (S) test.d(16): Error: template instance test.A.__ctor!() error instantiating (Assignment expression is changed to lvalue in git-head, by fixing issue 12211) --