You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rule S4144 is raised when two methods have identical bodies but are not identical due to different return types.
Repro steps
publicrecordFoo(stringA);publicrecordBar(stringA);privatestatic Foo Test1(){strings="A";returnnew(s);}privatestatic Bar Test2()// S4144 is flagged here{strings="A";returnnew(s);}
Expected behavior
S4144 should not be raised since the methods are different (one returns Foo, the other Bar).
Description
Rule S4144 is raised when two methods have identical bodies but are not identical due to different return types.
Repro steps
Expected behavior
S4144 should not be raised since the methods are different (one returns Foo, the other Bar).
Actual behavior
S4144 is raised.
Known workarounds
Inhibit S4144
Related information
The text was updated successfully, but these errors were encountered: