fix Issue 10289 - compiler should infer nothrow even if Error is thrown