// (13,18): error CS8058: Feature 'pattern matching experimental features' is experimental and unsupported; use '/features:patternsExperimental' to enable.
// int i5 = o match (case * : 7); // match
Diagnostic(ErrorCode.ERR_FeatureIsExperimental,"o match (case * : 7)").WithArguments("pattern matching experimental features","patternsExperimental").WithLocation(13,18),
// (14,21): error CS8058: Feature 'pattern matching' is experimental and unsupported; use '/features:patterns' to enable.
// object q = (o is null) ? o : throw null; // throw expressions
Diagnostic(ErrorCode.ERR_FeatureIsExperimental,"o is null").WithArguments("pattern matching","patterns").WithLocation(14,21),
// (14,38): error CS1525: Invalid expression term 'throw'
// object q = (o is null) ? o : throw null; // throw expressions
// (15,13): error CS8058: Feature 'pattern matching' is experimental and unsupported; use '/features:patterns' to enable.
// if (q is Vec(3)) {} // recursive pattern
Diagnostic(ErrorCode.ERR_FeatureIsExperimental,"q is Vec(3)").WithArguments("pattern matching","patterns").WithLocation(15,13),
// (15,18): error CS8058: Feature 'pattern matching experimental features' is experimental and unsupported; use '/features:patternsExperimental' to enable.
// (13,18): error CS8058: Feature 'pattern matching experimental features' is experimental and unsupported; use '/features:patternsExperimental' to enable.
// int i5 = o match (case * : 7); // match
Diagnostic(ErrorCode.ERR_FeatureIsExperimental,"o match (case * : 7)").WithArguments("pattern matching experimental features","patternsExperimental").WithLocation(13,18),
// (14,38): error CS1525: Invalid expression term 'throw'
// object q = (o is null) ? o : throw null; // throw expressions
// (15,18): error CS8058: Feature 'pattern matching experimental features' is experimental and unsupported; use '/features:patternsExperimental' to enable.