Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

DocId is not generated correctly for a generic method within a generic class with different generic types #31

Closed
twsouthwick opened this issue Apr 21, 2015 · 0 comments

Comments

@twsouthwick
Copy link
Member

The docid for the method MemberWithDifferentGeneric in the example below is not generated correctly.

Expected: M:ConsoleApplication2.GenericClass1.MemberWithDifferentGeneric1(0)`

Observed: M:ConsoleApplication2.GenericClass1.MemberWithDifferentGeneric(``0)`

namespace Microsoft.Fx.Portability.MetadataReader.Tests.Tests
{
    class CallOtherClass
    {
        static void Main(string[] args)
        {
            GenericClass<int>.MemberWithDifferentGeneric("hello");
        }
    }

    public class GenericClass<TResult>
    {
        internal static TResult MemberWithDifferentGeneric<TAntecedentResult>(TAntecedentResult result)
        {
            return default(TResult);
        }
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant