Issue 10254 - Purity correctness is broken with constructor

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