fix Issue 11153 - ICE during a diagnostic for missing return type