Issue 9415 - delegate inference should make function literal impure

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