Poor diagnostic wrong number of Type Arguments... #34620
Labels
Area-Compilers
Bug
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
Milestone
... with a type that exists in both a generic and non generic version
Version Used:
master
Steps to Reproduce:
Compile the following code
https://sharplab.io/#v2:EYLgtghgzgLgpgJwD4AEAMACFBGA3AWACgUBmLAJgwGEMQMBJKgezAAcIEJgAbOAHgCWAOxgAaDMJgA+DAG8AvkA
Expected Behavior:
error CS0305: Using the generic type 'IComparable<T>' requires 1 type arguments
Actual Behavior:
error CS0308: The non-generic type 'IComparable' cannot be used with type arguments
Whilst the semantics are debatable, this error message is (almost) just plain false :-)
The text was updated successfully, but these errors were encountered: