codeclimate-duplication icon indicating copy to clipboard operation
codeclimate-duplication copied to clipboard

Wrong duplication detection on function overrides?

Open satanTime opened this issue 5 years ago • 0 comments

Hi everybody,

I met an interesting case. There are several different function overrides which are detected as a duplication, but I don't see a way how to solve them.

The idea is that the 3rd argument specifies the return generic type, every type is different.

https://codeclimate.com/github/ike18t/ng-mocks/lib/common/func.is-mock-of.ts/source#issue-a3a802d6774fc68bd1f39ab8a2b0cfa2

Might you help me to understand how this could be fixed?

Thank you in advance.

satanTime avatar Nov 05 '20 07:11 satanTime