Object Where Procedure is Required
Identifies places in which an object is used but a procedure is required and a default member exists on the object.
Reasoning
Providing an object where a procedure is required leads to an implicit call to the object's default member. This behavior is not obvious, and most likely unintended.
Default severity
Warning
Inspection type
CodeQualityIssues
Examples
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.ObjectWhereProcedureIsRequiredInspection.cs (Prerelease-v2.5.9.6289)