-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-CompilersBugConcept-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: master as of 2d3ffe0 (9th feb)
Steps to Reproduce:
unsafe
{
delegate* <ref int> fp1 = default;
delegate* <int> fp2 = fp1;
}Expected Behavior:
error CS0266: Cannot implicitly convert type 'delegate*<ref int>' to 'delegate*<int>'. An explicit conversion exists (are you missing a cast?)
Actual Behavior:
error CS0266: Cannot implicitly convert type 'delegate*<int>' to 'delegate*<int>'. An explicit conversion exists (are you missing a cast?)
Note the signatures delegate*<int> in the actual error message which is very confusing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-CompilersBugConcept-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.