fix issue 10596 - A method with out contract and auto return type causes segfault

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