dotnet/roslyn

Microsoft.CodeAnalysis.VisualBasic.SymbolDisplay.ToDisplayString() returns "this[]" for C# indexer

Open

#14,684 opened on Oct 22, 2016

View on GitHub
 (1 comment) (1 reaction) (0 assignees)C# (4,257 forks)batch import
Area-CompilersBughelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

Microsoft.CodeAnalysis.VisualBasic.SymbolDisplay.ToDisplayString() returns ReadOnly this[](Integer) As Integer rather than ReadOnly Item(Integer) As Integer for:

class C
{
    int this[int i] => i;
}

See Microsoft.CodeAnalysis.VisualBasic.UnitTests.SymbolDisplayTests.RefReturn.

Contributor guide