fix Issue 10289 - compiler should infer nothrow even if Error is thrown
Merge pull request #2145 from 9rnsr/fix10289

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