dotnet/roslyn
Voir sur GitHubIncorrect xml documentation id for generic class constructor
Open
#11 687 ouverte le 1 juin 2016
Area-CompilersBugConcept-APIhelp wanted
Métriques du dépôt
- Stars
- (20 414 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (256 PRs mergées en 30 j)
Description
Version Used: 1.1.1
Steps to Reproduce:
- Create a generic class with one or more type parameters:
public class Class1<T>
{
public Class1()
{
Console.WriteLine("Class1");
}
}
- When we instantiate the class using code such as
var x = new Class1<int>(), and get the symbol when cursor is at theClass1, then get the xml documentation id by callingsymbol.GetDocumentationCommentId(), it will contain the actual data typeSystem.Int32, which is incorrect.
Expected Behavior:
It should return something like this:
M:XmlDocIdTest.Class1`1.#ctor
Actual Behavior:
M:XmlDocIdTest.Class1{System.Int32}.#ctor