ReSharper 9.2 “Go to Implementation” not working f

2019-08-10 20:03发布

问题:

I'm using ReSharper 9.2 (stuck with this version for now) and I have a case, rather common one for us, where "Go to implementation" doesn't work. Even worse, you'd think that there really is no implementation.

This is an example for this behavior:

public interface ITest<in TFrom, out TTo>
{
    TTo SomeMethod(TFrom inp);
}

public interface ISpecialTest : ITest<string, int>
{
    void AnotherMethod();
}

public class Implementation : ISpecialTest
{
    public int SomeMethod(string inp)
    {
        return 0;
    }

    public void AnotherMethod()
    {
    }
}

private static void Main(string[] args)
{
     ISpecialTest t = new Implementation();
     t.SomeMethod("test"); // Resharper"Go to implementation" does NOT work
     t.AnotherMethod(); // Resharper"Go to implementation" DOES work
}

Does anybody experience the same behavior and might have a clue if this is fixed in a new version, or even better, fix it somehow in version 9.2 of Resharper?