-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Area-CompilersConcept-Diagnostic ClarityThe issues deals with the ease of understanding of errors and warnings.The issues deals with the ease of understanding of errors and warnings.
Milestone
Description
Version Used:
Visual Studio 2026 (18.0.0 Insiders [11012.119])
Roslyn 5.0.0-2.25459.9 @ 5d47bb1
Details:
The error CS7003 "Unexpected use of an unbound generic name" is not reported before the project is built, and the IDE will not display the error squiggles
Example:
public class C
{
private static dynamic DynamicMethod(dynamic input)
{
return input.Something<>()[1];
}
public static string Something()
{
return string.Empty;
}
}Screenshot
Expected Behavior:
The error is reported and shown with squiggles in the IDE like every other error
Actual Behavior:
The diagnostic is only emitted during build and is not visible in the IDE
Metadata
Metadata
Assignees
Labels
Area-CompilersConcept-Diagnostic ClarityThe issues deals with the ease of understanding of errors and warnings.The issues deals with the ease of understanding of errors and warnings.