-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed as not planned
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.Feature - Pattern MatchingPattern MatchingPattern Matching
Milestone
Description
Version Used: master
Steps to Reproduce:
using System.Collections.Generic;
class C
{
unsafe void M1()
{
int[] *y;
List<int> *z;
}
}
Expected Behavior:
Following errors are produced:
error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('int[]')
error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('List')
Actual Behavior:
Following errors are produced:
error CS1001: Identifier expected
error CS1002: ; expected
error CS0103: The name 'y' does not exist in the current context
error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
error CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type ('List')
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.Feature - Pattern MatchingPattern MatchingPattern Matching