fix Issue 6930 - combined type of immutable(T) and inout(T) should be inout(const(T))