Resharper "in" parameters seems to break overload resolution?

I'm seeing red squigglies on code where resharper apparently cant disambiguate method overloads, but I think it's only when using "in" parameters.

 

e.g.

This is fine:

However, making the parameters to Match `in`, results in this

And to get rid of the red wiggle, I need to specify the generic type:

The wiggle now goes away, but you can see that Validated<TR> is greyed out as it's uncessary.

0
3 comments

The project builds fine with the red squigglies.

0

Hello Stuart!

 

Thank you for contacting us.

Could you please provide some code sample demonstrating 'Ambiguous invocation' issue? Unfortunately couldn't reproduce the problem using the provided screenshot.

Thank you.

0

Hi,

 

YOu can see here, no red wiggles.

 

Add the in parameters to Match methods. Red wiggles appear.

 

With the error:

 

Project still builds and behaves as expected.

0

Please sign in to leave a comment.