dotnet/roslyn

Diagnostic for bad type arguments in cref could be more clear

Open

#4,681 opened on Aug 20, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-CompilersBugConcept-Diagnostic ClarityLanguage-VBhelp wanted

Repository metrics

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

Description

The diagnostics introduced to fix 1087447 are confusing and deserve improvement. Specifically, for the source code

''' <summary>
''' <see cref="C(Of Integer).f()"/>
''' </summary>
Class C(Of T)
Sub f()
End Sub
End Class

we produce

BC42309: XML comment has a tag with a 'cref' attribute 'C(Of Integer).f()' that could not be resolved.
''' <see cref="C(Of Integer).f()"/>

The error is that the type argument isn't a simple identifier.

Migrated from TFS/DevDiv 1096332

Contributor guide