JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Code inspection: Function never returns

Last modified: 11 February 2024

This message is issued if a method contains an infinite loop and does not return control. Although infinite loops are useful for some tasks, in application software they generally cause errors. If you do not need an endless loop, consider rewriting the code.