JetBrains Rider 2026.1 Help

Code inspection: Local function hides method

This inspection reports a local function that has the same name as a method and hides it in the current scope. That can make the code harder to read because calls may resolve to the local function when the containing type method was intended.

Example

class C { void Log() { } void M() { void Log() { } Log(); } }
class C { void Log() { } void M() { void LogLocal() { } LogLocal(); } }

Quick-fix

The quick-fix starts a rename so the local function no longer hides the method.

01 April 2026