fix Issue 11153 - ICE during a diagnostic for missing return type
Merge pull request #2610 from 9rnsr/fix11153

[REG2.064a] Issue 11153 - ICE during a diagnostic for missing return type