Closed marceloavan closed 5 years ago
Hi! As far as I understand it's just a cosmetic issue, isn't it?
Hi Ivan. I think it's more than that. A developer who reads the method documentation plus its type may have a misunderstanding of using the method if it is declared as NoReturn
. It may not be a common problem, but as the types are declared, I think it's best to use the type that fits most appropriately.
Considering the documentation, NoReturn is used just to methods that do never return, as follow: