fix issue 9859 - Cannot use inout in delegate

http://d.puremagic.com/issues/show_bug.cgi?id=9859