Error message change for type not found is not correct #7493
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Milestone
Reports in Roslyn:
In legacy compiler:
To me, this is possibly confusing. In this case it is
List<T>
that could not be found. NotList<Bar>
. And especially when going into some silly variations, egList<"moo">
.I can understand it was a possible enhancement, but it would be better to say
no generic type 'List' taking 1 argument
.Unfortunately, the Git history does not go back far enough to say why this change was done.
The point of interest is the
whereText
parameter inBinder.NotFound(...)
. See: https://github.com/dotnet/roslyn/blob/master/src%2FCompilers%2FCSharp%2FPortable%2FBinder%2FBinder_Symbols.cs#L1742Related: #7387
The text was updated successfully, but these errors were encountered: