304 references to ERR_FeatureNotAvailableInVersion8
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1840
case ErrorCode.
ERR_FeatureNotAvailableInVersion8
:
LanguageVersion.cs (1)
291
return ErrorCode.
ERR_FeatureNotAvailableInVersion8
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1707
ErrorCode.
ERR_FeatureNotAvailableInVersion8
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenAwaitForeachTests.cs (2)
388
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new C()").WithArguments("extension GetAsyncEnumerator", "9.0").WithLocation(6, 33),
7227
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new C()").WithArguments("extension GetAsyncEnumerator", "9.0").WithLocation(8, 33)
CodeGen\CodeGenForEachTests.cs (1)
4330
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new C()").WithArguments("extension GetEnumerator", "9.0").WithLocation(7, 27)
CodeGen\CodeGenTupleTest.cs (5)
16185
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(6, 19),
16188
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(6, 24));
16285
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(7, 19),
16288
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(7, 24));
25506
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(6, 29),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (21)
Attributes\AttributeTests_NativeInteger.cs (4)
423
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 25),
426
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(7, 20));
594
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 21),
597
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(3, 27),
Semantics\PatternMatchingTests2.cs (3)
785
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(").WithArguments("parenthesized pattern", "9.0").WithLocation(8, 18),
791
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(").WithArguments("parenthesized pattern", "9.0").WithLocation(9, 27),
794
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(").WithArguments("parenthesized pattern", "9.0").WithLocation(10, 28),
Semantics\PatternSwitchTests.cs (14)
1696
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(21, 19),
1699
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(21, 24),
1714
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(23, 19),
1717
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(23, 24),
1732
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(25, 19),
1735
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(25, 25),
1744
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(30, 19),
1747
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(30, 24),
1756
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(32, 19),
1759
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(32, 25),
1780
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(43, 23),
1783
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(43, 28),
1798
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(45, 23),
1801
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(45, 28),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (1)
475
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 30)
IOperation\IOperationTests_IIsPatternExpression.cs (1)
1321
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Prop[1]").WithArguments("type pattern", "9.0").WithLocation(6, 33),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (119)
Semantics\AnonymousFunctionTests.cs (1)
75
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 23));
Semantics\ImplicitObjectCreationTests.cs (6)
97
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(10, 16),
103
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(11, 16),
109
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(12, 17),
112
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(13, 16),
118
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(14, 16),
124
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(15, 17),
Semantics\InitOnlyMemberTests.cs (9)
42
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "init").WithArguments("init-only setters", "9.0").WithLocation(4, 35)
80
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property").WithArguments("init-only setters", "9.0").WithLocation(6, 23),
151
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "with").WithArguments("records", "9.0").WithLocation(6, 15),
154
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property").WithArguments("init-only setters", "9.0").WithLocation(6, 22),
219
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property = 42").WithArguments("init-only setters", "9.0").WithLocation(2, 7),
254
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "init").WithArguments("init-only setters", "9.0").WithLocation(4, 28),
281
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "init").WithArguments("init-only setters", "9.0").WithLocation(4, 32),
314
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property").WithArguments("init-only setters", "9.0").WithLocation(6, 23),
349
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property").WithArguments("init-only setters", "9.0").WithLocation(6, 24),
Semantics\LambdaDiscardParametersTests.cs (7)
49
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "_").WithArguments("lambda discard parameters", "9.0").WithLocation(6, 51),
52
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "_").WithArguments("lambda discard parameters", "9.0").WithLocation(10, 13),
55
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "_").WithArguments("lambda discard parameters", "9.0").WithLocation(13, 13),
58
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "_").WithArguments("lambda discard parameters", "9.0").WithLocation(16, 13),
61
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "_").WithArguments("lambda discard parameters", "9.0").WithLocation(17, 13),
64
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "_").WithArguments("lambda discard parameters", "9.0").WithLocation(20, 13)
281
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "_").WithArguments("lambda discard parameters", "9.0").WithLocation(8, 50)
Semantics\LocalFunctionTests.cs (4)
890
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "[A]").WithArguments("local function attributes", "9.0").WithLocation(10, 9),
893
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "[return: A]").WithArguments("local function attributes", "9.0").WithLocation(13, 9),
896
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "[A]").WithArguments("local function attributes", "9.0").WithLocation(16, 21),
899
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "[A]").WithArguments("local function attributes", "9.0").WithLocation(18, 21));
Semantics\NativeIntegerTests.cs (71)
77
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 5),
80
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 14),
83
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(3, 22));
2929
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 15),
2932
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 15));
2976
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 11),
2979
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 11));
3624
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 22));
3706
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(4, 28));
3740
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(4, 28));
3775
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(1, 12),
3781
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(2, 12),
4147
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
4150
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 13));
4206
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 19),
4286
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 20));
5041
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F1").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5044
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F2").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5047
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F3").WithArguments("native-sized integers", "9.0").WithLocation(7, 13),
5050
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F4").WithArguments("native-sized integers", "9.0").WithLocation(8, 13),
5053
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 * F1").WithArguments("native-sized integers", "9.0").WithLocation(9, 13),
5056
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F2 / F2").WithArguments("native-sized integers", "9.0").WithLocation(10, 13),
5059
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F3 * F1").WithArguments("native-sized integers", "9.0").WithLocation(11, 13),
5062
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F4 / F2").WithArguments("native-sized integers", "9.0").WithLocation(12, 13));
5425
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F1").WithArguments("native-sized integers", "9.0").WithLocation(5, 14),
5428
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F2").WithArguments("native-sized integers", "9.0").WithLocation(6, 14),
5431
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F3").WithArguments("native-sized integers", "9.0").WithLocation(7, 14),
5434
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F4").WithArguments("native-sized integers", "9.0").WithLocation(8, 14),
5437
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 * F1").WithArguments("native-sized integers", "9.0").WithLocation(9, 14),
5440
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F2 / F2").WithArguments("native-sized integers", "9.0").WithLocation(10, 14),
5443
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F3 * F1").WithArguments("native-sized integers", "9.0").WithLocation(11, 14),
5446
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F4 / F2").WithArguments("native-sized integers", "9.0").WithLocation(12, 14));
5484
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F1").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5487
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F1").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5490
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "~F1").WithArguments("native-sized integers", "9.0").WithLocation(7, 13),
5493
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F2").WithArguments("native-sized integers", "9.0").WithLocation(8, 13),
5496
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "~F2").WithArguments("native-sized integers", "9.0").WithLocation(9, 13));
5531
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "++F").WithArguments("native-sized integers", "9.0").WithLocation(5, 9),
5534
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F++").WithArguments("native-sized integers", "9.0").WithLocation(6, 9),
5537
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "--F").WithArguments("native-sized integers", "9.0").WithLocation(7, 9),
5540
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F--").WithArguments("native-sized integers", "9.0").WithLocation(8, 9));
5587
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 + F2").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5590
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 - F2").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5593
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 * F2").WithArguments("native-sized integers", "9.0").WithLocation(7, 13),
5596
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 / F2").WithArguments("native-sized integers", "9.0").WithLocation(8, 13),
5599
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 % F2").WithArguments("native-sized integers", "9.0").WithLocation(9, 13),
5602
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 < F2").WithArguments("native-sized integers", "9.0").WithLocation(10, 13),
5605
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 <= F2").WithArguments("native-sized integers", "9.0").WithLocation(11, 13),
5608
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 > F2").WithArguments("native-sized integers", "9.0").WithLocation(12, 13),
5611
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 >= F2").WithArguments("native-sized integers", "9.0").WithLocation(13, 13),
5614
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 == F2").WithArguments("native-sized integers", "9.0").WithLocation(14, 13),
5617
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 != F2").WithArguments("native-sized integers", "9.0").WithLocation(15, 13),
5620
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 & F2").WithArguments("native-sized integers", "9.0").WithLocation(16, 13),
5623
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 | F2").WithArguments("native-sized integers", "9.0").WithLocation(17, 13),
5626
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 ^ F2").WithArguments("native-sized integers", "9.0").WithLocation(18, 13),
5629
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 << 1").WithArguments("native-sized integers", "9.0").WithLocation(19, 13),
5632
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 >> 1").WithArguments("native-sized integers", "9.0").WithLocation(20, 13));
5665
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) == (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5668
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) == (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5671
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) != (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5674
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) != (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(6, 13));
5715
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F += 1").WithArguments("native-sized integers", "9.0").WithLocation(5, 9),
5718
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F -= 1").WithArguments("native-sized integers", "9.0").WithLocation(6, 9),
5721
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F *= 1").WithArguments("native-sized integers", "9.0").WithLocation(7, 9),
5724
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F /= 1").WithArguments("native-sized integers", "9.0").WithLocation(8, 9),
5727
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F %= 1").WithArguments("native-sized integers", "9.0").WithLocation(9, 9),
5730
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F &= 1").WithArguments("native-sized integers", "9.0").WithLocation(10, 9),
5733
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F |= 1").WithArguments("native-sized integers", "9.0").WithLocation(11, 9),
5736
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F ^= 1").WithArguments("native-sized integers", "9.0").WithLocation(12, 9),
5739
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F <<= 1").WithArguments("native-sized integers", "9.0").WithLocation(13, 9),
5742
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F >>= 1").WithArguments("native-sized integers", "9.0").WithLocation(14, 9));
Semantics\NullableReferenceTypesTests.cs (18)
21899
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNull(nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(6, 6),
21902
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNullWhen(true, nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(9, 6),
21905
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNull(nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(12, 6),
21908
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNullWhen(true, nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(15, 6)
145595
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(4, 56));
145631
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(4, 46),
145637
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(5, 46),
145643
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(5, 55),
145652
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(6, 54),
145661
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(7, 35),
145670
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(8, 41),
145679
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(9, 35),
145688
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(10, 35),
145700
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(11, 46),
146988
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(24, 37),
146997
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(25, 37),
147009
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(29, 38),
147018
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(30, 38));
Semantics\RecordTests.cs (2)
82
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record Point(int x, int y);").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
204
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
Semantics\TopLevelStatementsTests.cs (1)
616
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, @"System.Console.WriteLine(""Hi!"");").WithArguments("top-level statements", "9.0").WithLocation(1, 1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (76)
Symbols\CovariantReturnTests.cs (57)
643
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("covariant returns", "9.0").WithLocation(12, 28),
646
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P1").WithArguments("covariant returns", "9.0").WithLocation(13, 28),
649
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "this").WithArguments("covariant returns", "9.0").WithLocation(16, 28)
704
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 28)
778
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 23)
837
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 23)
899
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(9, 23)
959
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 28)
1028
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 23)
1092
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(9, 23)
1154
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "this").WithArguments("covariant returns", "9.0").WithLocation(8, 28)
1216
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "this").WithArguments("covariant returns", "9.0").WithLocation(8, 23)
1283
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "this").WithArguments("covariant returns", "9.0").WithLocation(9, 23)
1433
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(4, 28)
1496
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(4, 28)
1560
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "this").WithArguments("covariant returns", "9.0").WithLocation(4, 28)
1625
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 28)
1822
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("covariant returns", "9.0").WithLocation(10, 28),
1825
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M2").WithArguments("covariant returns", "9.0").WithLocation(11, 28),
1828
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M3").WithArguments("covariant returns", "9.0").WithLocation(12, 28),
1899
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("covariant returns", "9.0").WithLocation(9, 33),
1902
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M2").WithArguments("covariant returns", "9.0").WithLocation(10, 34)
2091
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 28)
2225
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(8, 28)
2290
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(8, 28),
2345
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(8, 28),
2399
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(8, 40),
2402
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(12, 28)
2517
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(8, 49),
2520
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(12, 28)
2867
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(4, 28)
2933
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(4, 28)
3000
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(4, 28)
3100
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "get_P").WithArguments("covariant returns", "9.0").WithLocation(14, 28),
3103
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(19, 28)
3142
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P").WithArguments("covariant returns", "9.0").WithLocation(12, 28)
3184
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0").WithLocation(12, 28)
3572
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("covariant returns", "9.0").WithLocation(20, 29),
3575
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P1").WithArguments("covariant returns", "9.0").WithLocation(21, 29),
3578
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M2").WithArguments("covariant returns", "9.0").WithLocation(22, 28),
3581
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P2").WithArguments("covariant returns", "9.0").WithLocation(23, 28),
3584
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M3").WithArguments("covariant returns", "9.0").WithLocation(24, 35),
3587
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P3").WithArguments("covariant returns", "9.0").WithLocation(25, 35),
3590
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M4").WithArguments("covariant returns", "9.0").WithLocation(26, 34),
3593
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P4").WithArguments("covariant returns", "9.0").WithLocation(27, 34),
3596
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M5").WithArguments("covariant returns", "9.0").WithLocation(28, 34),
3599
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P5").WithArguments("covariant returns", "9.0").WithLocation(29, 34),
3602
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M6").WithArguments("covariant returns", "9.0").WithLocation(30, 33),
3605
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "P6").WithArguments("covariant returns", "9.0").WithLocation(31, 33)
3752
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("covariant returns", "9.0").WithLocation(4, 28),
3755
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M2").WithArguments("covariant returns", "9.0").WithLocation(5, 28)
3846
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0")
3969
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0")
4089
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0")
4204
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0")
4323
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("covariant returns", "9.0")
4438
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Prop").WithArguments("covariant returns", "9.0")
Symbols\ExtendedPartialMethodsTests.cs (18)
33
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(4, 26),
36
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(5, 26)
132
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(4, 26),
135
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(5, 26)
269
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0"),
272
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0")
384
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(4, 34),
387
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(5, 34)
646
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "ToString").WithArguments("extended partial methods", "9.0").WithLocation(4, 36),
649
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "ToString").WithArguments("extended partial methods", "9.0").WithLocation(5, 36)
915
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(8, 43),
918
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(9, 43)
1044
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(6, 34),
1047
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(9, 41));
1376
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(9, 31),
1379
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(10, 31));
1875
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("extended partial methods", "9.0").WithLocation(4, 24),
1878
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("extended partial methods", "9.0").WithLocation(5, 24));
Symbols\ModuleInitializers\ModuleInitializersTests.cs (1)
44
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "ModuleInitializer").WithArguments("module initializers", "9.0").WithLocation(5, 6)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (75)
Parsing\AnonymousFunctionParsingTests.cs (32)
216
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 20));
314
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 20),
415
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 20),
516
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 20),
519
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 27),
880
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 28));
899
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 25));
964
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 29),
1030
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 32));
1100
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 25));
1169
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 34),
1333
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 34),
1410
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 34),
1606
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 41),
1710
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 41),
1802
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(1, 34),
1892
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 22),
2010
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 22),
2127
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate*<void> ptr = &delegate() { };").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
2130
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 1),
2216
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 22),
2593
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 34),
2741
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
2890
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
3269
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 28));
3419
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 34),
3572
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
3726
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
4132
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 23));
4291
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 29),
4453
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 35),
4616
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 35),
Parsing\DeclarationParsingTests.cs (3)
8888
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(1, 22),
9016
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(2, 23),
9025
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(3, 15),
Parsing\DeclarationScopeParsingTests.cs (2)
3284
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "scoped record A;").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
3287
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "scoped").WithArguments("ref fields", "11.0").WithLocation(2, 1),
Parsing\FunctionPointerTests.cs (2)
513
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate* unmanaged[cdecl]<string, Goo, int> ptr;").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
516
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 1),
Parsing\ImplicitObjectCreationParsingTests.cs (3)
411
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(1, 30),
460
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(1, 30),
541
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(1, 30),
Parsing\LocalFunctionParsingTests.cs (2)
709
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "extern").WithArguments("extern local functions", "9.0").WithLocation(6, 9),
798
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "extern").WithArguments("extern local functions", "9.0").WithLocation(6, 9),
Parsing\NullableParsingTests.cs (3)
744
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "switch (e) { case T[] t: break; }").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
812
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "switch (e) { case T[]? t: break; }").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
818
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "T[]").WithArguments("type pattern", "9.0").WithLocation(1, 19),
Parsing\ParserErrorMessageTests.cs (1)
2717
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new").WithArguments("target-typed object creation", "9.0").WithLocation(7, 21),
Parsing\PatternParsingTests.cs (15)
8302
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "or").WithArguments("or pattern", "9.0").WithLocation(1, 33),
8364
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "and").WithArguments("and pattern", "9.0").WithLocation(1, 33),
8423
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(1, 31),
8475
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(1, 31));
8532
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "or").WithArguments("or pattern", "9.0").WithLocation(2, 7),
8541
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "and").WithArguments("and pattern", "9.0").WithLocation(3, 7),
8547
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(4, 5),
8553
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(5, 5));
8689
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, @"_ = e switch {
8702
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "<").WithArguments("relational pattern", "9.0").WithLocation(2, 5),
8705
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "<=").WithArguments("relational pattern", "9.0").WithLocation(3, 5),
8708
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, ">").WithArguments("relational pattern", "9.0").WithLocation(4, 5),
8711
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, ">=").WithArguments("relational pattern", "9.0").WithLocation(5, 5),
8714
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "==").WithArguments("relational pattern", "9.0").WithLocation(6, 5),
8720
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "!=").WithArguments("relational pattern", "9.0").WithLocation(7, 5),
Parsing\RecordParsing.cs (7)
112
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record C(int X, int Y);").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
270
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record Point;").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
1212
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "0 with {}").WithArguments("with on structs", "10.0").WithLocation(4, 13),
1215
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "with").WithArguments("records", "9.0").WithLocation(4, 15));
2597
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
2783
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
3728
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "ref record R;").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
819
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "x?.y!.z").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
Parsing\TopLevelStatementsParsingTests.cs (1)
3193
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
Syntax\SyntaxFactoryTests.cs (3)
621
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate*<void>").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
624
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 1),
654
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 18),