314 references to ERR_FeatureNotAvailableInVersion8
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1899
or ErrorCode.
ERR_FeatureNotAvailableInVersion8
LanguageVersion.cs (1)
326
return ErrorCode.
ERR_FeatureNotAvailableInVersion8
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1752
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),
8166
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new C()").WithArguments("extension GetAsyncEnumerator", "9.0").WithLocation(8, 33)
CodeGen\CodeGenForEachTests.cs (1)
4450
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "new C()").WithArguments("extension GetEnumerator", "9.0").WithLocation(7, 27)
CodeGen\CodeGenTupleTest.cs (5)
16179
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(6, 19),
16182
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(6, 24));
16279
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(7, 19),
16282
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(7, 24));
25468
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(6, 29),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (26)
Attributes\AttributeTests_NativeInteger.cs (4)
425
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 25),
428
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(7, 20));
596
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 21),
599
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(3, 27),
Semantics\PatternMatchingTests2.cs (3)
781
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(").WithArguments("parenthesized pattern", "9.0").WithLocation(8, 18),
787
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(").WithArguments("parenthesized pattern", "9.0").WithLocation(9, 27),
790
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(").WithArguments("parenthesized pattern", "9.0").WithLocation(10, 28),
Semantics\PatternSwitchTests.cs (14)
1698
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(21, 19),
1701
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(21, 24),
1716
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(23, 19),
1719
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(23, 24),
1734
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(25, 19),
1737
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(25, 25),
1746
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(30, 19),
1749
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(30, 24),
1758
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(32, 19),
1761
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "long").WithArguments("type pattern", "9.0").WithLocation(32, 25),
1782
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(43, 23),
1785
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(43, 28),
1800
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(45, 23),
1803
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "int").WithArguments("type pattern", "9.0").WithLocation(45, 28),
Semantics\RecordTests.cs (5)
55
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(int x, int y)").WithArguments("primary constructors", "12.0").WithLocation(2, 12),
82
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record Point(int x, int y);").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
148
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(int x, int y)").WithArguments("primary constructors", "12.0").WithLocation(4, 16),
207
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
219
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(int x, int y)").WithArguments("primary constructors", "12.0").WithLocation(2, 19),
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 (120)
Semantics\AnonymousFunctionTests.cs (1)
75
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 23));
Semantics\FunctionPointerTests.cs (1)
44
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(4, 5)
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)
44
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "init").WithArguments("init-only setters", "9.0").WithLocation(4, 35)
82
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property").WithArguments("init-only setters", "9.0").WithLocation(6, 23),
153
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "with").WithArguments("records", "9.0").WithLocation(6, 15),
156
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property").WithArguments("init-only setters", "9.0").WithLocation(6, 22),
221
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property = 42").WithArguments("init-only setters", "9.0").WithLocation(2, 7),
256
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "init").WithArguments("init-only setters", "9.0").WithLocation(4, 28),
283
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "init").WithArguments("init-only setters", "9.0").WithLocation(4, 32),
316
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "Property").WithArguments("init-only setters", "9.0").WithLocation(6, 23),
351
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 (73)
82
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 5),
85
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 14),
88
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(3, 22));
2934
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 15),
2937
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 15));
2981
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 11),
2984
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 11));
3629
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 22));
3711
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(4, 28));
3745
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(4, 28));
3780
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(1, 12),
3783
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("using type alias", "12.0").WithLocation(1, 12),
3786
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(2, 12),
3789
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("using type alias", "12.0").WithLocation(2, 12));
4152
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
4155
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nuint").WithArguments("native-sized integers", "9.0").WithLocation(6, 13));
4211
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(3, 19),
4291
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "nint").WithArguments("native-sized integers", "9.0").WithLocation(5, 20));
5072
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F1").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5075
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F2").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5078
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F3").WithArguments("native-sized integers", "9.0").WithLocation(7, 13),
5081
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F4").WithArguments("native-sized integers", "9.0").WithLocation(8, 13),
5084
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 * F1").WithArguments("native-sized integers", "9.0").WithLocation(9, 13),
5087
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F2 / F2").WithArguments("native-sized integers", "9.0").WithLocation(10, 13),
5090
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F3 * F1").WithArguments("native-sized integers", "9.0").WithLocation(11, 13),
5093
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F4 / F2").WithArguments("native-sized integers", "9.0").WithLocation(12, 13));
5456
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F1").WithArguments("native-sized integers", "9.0").WithLocation(5, 14),
5459
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F2").WithArguments("native-sized integers", "9.0").WithLocation(6, 14),
5462
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F3").WithArguments("native-sized integers", "9.0").WithLocation(7, 14),
5465
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F4").WithArguments("native-sized integers", "9.0").WithLocation(8, 14),
5468
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 * F1").WithArguments("native-sized integers", "9.0").WithLocation(9, 14),
5471
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F2 / F2").WithArguments("native-sized integers", "9.0").WithLocation(10, 14),
5474
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F3 * F1").WithArguments("native-sized integers", "9.0").WithLocation(11, 14),
5477
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F4 / F2").WithArguments("native-sized integers", "9.0").WithLocation(12, 14));
5515
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F1").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5518
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "-F1").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5521
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "~F1").WithArguments("native-sized integers", "9.0").WithLocation(7, 13),
5524
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "+F2").WithArguments("native-sized integers", "9.0").WithLocation(8, 13),
5527
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "~F2").WithArguments("native-sized integers", "9.0").WithLocation(9, 13));
5562
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "++F").WithArguments("native-sized integers", "9.0").WithLocation(5, 9),
5565
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F++").WithArguments("native-sized integers", "9.0").WithLocation(6, 9),
5568
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "--F").WithArguments("native-sized integers", "9.0").WithLocation(7, 9),
5571
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F--").WithArguments("native-sized integers", "9.0").WithLocation(8, 9));
5618
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 + F2").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5621
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 - F2").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5624
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 * F2").WithArguments("native-sized integers", "9.0").WithLocation(7, 13),
5627
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 / F2").WithArguments("native-sized integers", "9.0").WithLocation(8, 13),
5630
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 % F2").WithArguments("native-sized integers", "9.0").WithLocation(9, 13),
5633
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 < F2").WithArguments("native-sized integers", "9.0").WithLocation(10, 13),
5636
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 <= F2").WithArguments("native-sized integers", "9.0").WithLocation(11, 13),
5639
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 > F2").WithArguments("native-sized integers", "9.0").WithLocation(12, 13),
5642
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 >= F2").WithArguments("native-sized integers", "9.0").WithLocation(13, 13),
5645
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 == F2").WithArguments("native-sized integers", "9.0").WithLocation(14, 13),
5648
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 != F2").WithArguments("native-sized integers", "9.0").WithLocation(15, 13),
5651
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 & F2").WithArguments("native-sized integers", "9.0").WithLocation(16, 13),
5654
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 | F2").WithArguments("native-sized integers", "9.0").WithLocation(17, 13),
5657
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 ^ F2").WithArguments("native-sized integers", "9.0").WithLocation(18, 13),
5660
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 << 1").WithArguments("native-sized integers", "9.0").WithLocation(19, 13),
5663
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F1 >> 1").WithArguments("native-sized integers", "9.0").WithLocation(20, 13));
5696
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) == (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5699
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) == (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(5, 13),
5702
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) != (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(6, 13),
5705
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(F1, F1) != (F2, F2)").WithArguments("native-sized integers", "9.0").WithLocation(6, 13));
5746
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F += 1").WithArguments("native-sized integers", "9.0").WithLocation(5, 9),
5749
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F -= 1").WithArguments("native-sized integers", "9.0").WithLocation(6, 9),
5752
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F *= 1").WithArguments("native-sized integers", "9.0").WithLocation(7, 9),
5755
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F /= 1").WithArguments("native-sized integers", "9.0").WithLocation(8, 9),
5758
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F %= 1").WithArguments("native-sized integers", "9.0").WithLocation(9, 9),
5761
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F &= 1").WithArguments("native-sized integers", "9.0").WithLocation(10, 9),
5764
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F |= 1").WithArguments("native-sized integers", "9.0").WithLocation(11, 9),
5767
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F ^= 1").WithArguments("native-sized integers", "9.0").WithLocation(12, 9),
5770
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F <<= 1").WithArguments("native-sized integers", "9.0").WithLocation(13, 9),
5773
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "F >>= 1").WithArguments("native-sized integers", "9.0").WithLocation(14, 9));
Semantics\NullableReferenceTypesTests.cs (18)
23702
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNull(nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(6, 6),
23705
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNullWhen(true, nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(9, 6),
23708
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNull(nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(12, 6),
23711
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "MemberNotNullWhen(true, nameof(field1))").WithArguments("MemberNotNull attribute", "9.0").WithLocation(15, 6)
150025
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(4, 56));
150061
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(4, 46),
150067
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(5, 46),
150073
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(5, 55),
150082
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(6, 54),
150091
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(7, 35),
150100
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(8, 41),
150109
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(9, 35),
150118
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(10, 35),
150130
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(11, 46),
151418
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(24, 37),
151427
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(25, 37),
151439
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(29, 38),
151448
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(30, 38));
Semantics\TopLevelStatementsTests.cs (1)
617
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));
1444
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(9, 31),
1447
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M1").WithArguments("extended partial methods", "9.0").WithLocation(10, 31));
2283
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "M").WithArguments("extended partial methods", "9.0").WithLocation(4, 24),
2286
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 (79)
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),
2115
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate*<void> ptr = &delegate() { };").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
2118
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 1),
2204
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 22),
2581
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 34),
2729
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
2878
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
3257
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(8, 28));
3407
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 34),
3560
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
3714
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 40),
4120
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(9, 23));
4279
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 29),
4441
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 35),
4604
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "static").WithArguments("static anonymous function", "9.0").WithLocation(10, 35),
Parsing\DeclarationParsingTests.cs (3)
8793
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(1, 22),
8921
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(2, 23),
8930
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "default").WithArguments("default type parameter constraints", "9.0").WithLocation(3, 15),
Parsing\DeclarationScopeParsingTests.cs (2)
3277
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "scoped record A;").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
3280
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)
745
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "switch (e) { case T[] t: break; }").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
813
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "switch (e) { case T[]? t: break; }").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
819
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)
8263
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "or").WithArguments("or pattern", "9.0").WithLocation(1, 33),
8325
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "and").WithArguments("and pattern", "9.0").WithLocation(1, 33),
8384
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(1, 31),
8436
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(1, 31));
8493
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "or").WithArguments("or pattern", "9.0").WithLocation(2, 7),
8502
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "and").WithArguments("and pattern", "9.0").WithLocation(3, 7),
8508
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(4, 5),
8514
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "not").WithArguments("not pattern", "9.0").WithLocation(5, 5));
8650
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, @"_ = e switch {
8663
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "<").WithArguments("relational pattern", "9.0").WithLocation(2, 5),
8666
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "<=").WithArguments("relational pattern", "9.0").WithLocation(3, 5),
8669
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, ">").WithArguments("relational pattern", "9.0").WithLocation(4, 5),
8672
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, ">=").WithArguments("relational pattern", "9.0").WithLocation(5, 5),
8675
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "==").WithArguments("relational pattern", "9.0").WithLocation(6, 5),
8681
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "!=").WithArguments("relational pattern", "9.0").WithLocation(7, 5),
Parsing\RecordParsing.cs (10)
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));
2747
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
2759
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(int X, int Y)").WithArguments("primary constructors", "12.0").WithLocation(1, 16),
2933
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
2945
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(int X, int Y)").WithArguments("primary constructors", "12.0").WithLocation(1, 15),
3806
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, ";").WithArguments("primary constructors", "12.0").WithLocation(1, 20)
3878
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "ref record R;").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
849
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "x?.y!.z").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
Parsing\TopLevelStatementsParsingTests.cs (2)
3196
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "record ").WithArguments("top-level statements", "9.0").WithLocation(2, 1),
3208
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "(int x, int y)").WithArguments("primary constructors", "12.0").WithLocation(2, 19),
Syntax\SyntaxFactoryTests.cs (3)
635
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate*<void>").WithArguments("top-level statements", "9.0").WithLocation(1, 1),
638
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 1),
668
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion8
, "delegate").WithArguments("function pointers", "9.0").WithLocation(1, 18),