fix issue 10596 - A method with out contract and auto return type causes
segfault
Merge pull request #2383 from hpohl/10596

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