dotnet/roslyn

Diagnostic for bad type arguments in cref could be more clear

Open

#4681 aperta il 20 ago 2015

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-CompilersBugConcept-Diagnostic ClarityLanguage-VBhelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

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

Guida contributor