247 references to ERR_FeatureNotAvailableInVersion9
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1989
case ErrorCode.
ERR_FeatureNotAvailableInVersion9
:
LanguageVersion.cs (1)
293
return ErrorCode.
ERR_FeatureNotAvailableInVersion9
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1708
ErrorCode.
ERR_FeatureNotAvailableInVersion9
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (24)
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (16)
120
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "F").WithArguments("async method builder override", "10.0").WithLocation(11, 25),
123
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "G").WithArguments("async method builder override", "10.0").WithLocation(14, 28),
126
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "M").WithArguments("async method builder override", "10.0").WithLocation(17, 37)
526
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "F").WithArguments("async method builder override", "10.0").WithLocation(9, 21),
529
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "G").WithArguments("async method builder override", "10.0").WithLocation(12, 24),
532
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "M").WithArguments("async method builder override", "10.0").WithLocation(15, 26)
770
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder))]").WithArguments("lambda attributes", "10.0").WithLocation(6, 18),
776
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "=>").WithArguments("async method builder override", "10.0").WithLocation(6, 84),
779
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder<>))]").WithArguments("lambda attributes", "10.0").WithLocation(8, 23),
785
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "=>").WithArguments("async method builder override", "10.0").WithLocation(8, 84)
824
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder))]").WithArguments("lambda attributes", "10.0").WithLocation(6, 18),
827
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "MyTask").WithArguments("lambda return type", "10.0").WithLocation(6, 81),
830
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "=>").WithArguments("async method builder override", "10.0").WithLocation(6, 91),
833
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[AsyncMethodBuilder(typeof(MyTaskMethodBuilder<>))]").WithArguments("lambda attributes", "10.0").WithLocation(8, 23),
836
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "MyTask<int>").WithArguments("lambda return type", "10.0").WithLocation(8, 81),
839
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "=>").WithArguments("async method builder override", "10.0").WithLocation(8, 96)
CodeGen\CodeGenDeconstructTests.cs (8)
6203
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(@_, var x) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(6, 9),
6750
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(var x, x) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(6, 9),
6756
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(y, var y) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(7, 9),
7264
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(int x1, z) = t").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(8, 14));
10007
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(x1, string y1) = new A()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(7, 9),
10010
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(int x2, y2) = new A()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(9, 9),
10013
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(int x3, (string y3, z3)) = new B()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(11, 9),
10016
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(x4, var (y4, z4)) = new B()").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(13, 9));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
FlowAnalysis\FlowDiagnosticTests.cs (4)
929
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 7),
1308
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "P").WithArguments("struct field initializers", "10.0").WithLocation(3, 16),
1311
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20));
1336
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20));
Semantics\PatternMatchingTests5.cs (1)
1602
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, ":").WithArguments("extended property patterns", "10.0").WithLocation(8, 39),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (150)
Semantics\BindingAsyncTasklikeMoreTests.cs (1)
1637
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "m1").WithArguments("async method builder override", "10.0").WithLocation(16, 24),
Semantics\ConstantTests.cs (17)
189
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S2").WithArguments("parameterless struct constructors", "10.0").WithLocation(10, 12),
3894
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""ITEM""").WithArguments("constant interpolated strings", "10.0").WithLocation(12, 4),
3897
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Post""").WithArguments("constant interpolated strings", "10.0").WithLocation(15, 23),
3900
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Testing""").WithArguments("constant interpolated strings", "10.0").WithLocation(25, 27),
3903
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""{""Level 5""} {""Number 3""}""").WithArguments("constant interpolated strings", "10.0").WithLocation(26, 27),
3906
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""{$""{""Spinning Top""}""}""").WithArguments("constant interpolated strings", "10.0").WithLocation(27, 27),
3909
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Hybrid""").WithArguments("constant interpolated strings", "10.0").WithLocation(28, 27),
3912
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""321""").WithArguments("constant interpolated strings", "10.0").WithLocation(29, 50),
3915
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""{S1}""").WithArguments("constant interpolated strings", "10.0").WithLocation(30, 27),
3918
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$"" the {S2}""").WithArguments("constant interpolated strings", "10.0").WithLocation(31, 32),
3921
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Failed to {VS}""").WithArguments("constant interpolated strings", "10.0").WithLocation(34, 27),
3927
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Testing""").WithArguments("constant interpolated strings", "10.0").WithLocation(37, 25),
3930
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Level 5""").WithArguments("constant interpolated strings", "10.0").WithLocation(40, 18),
3933
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""ConstantInterpolatedString""").WithArguments("constant interpolated strings", "10.0").WithLocation(44, 30),
3936
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Number 3""").WithArguments("constant interpolated strings", "10.0").WithLocation(46, 22),
3939
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Radio Noise""").WithArguments("constant interpolated strings", "10.0").WithLocation(48, 22),
3942
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Number 3""").WithArguments("constant interpolated strings", "10.0").WithLocation(49, 31));
Semantics\DelegateTypeTests.cs (30)
6107
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(8, 18),
6110
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(8, 40));
6302
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(8, 18),
6305
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(8, 49));
6488
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
6491
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(10, 12));
6523
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
6526
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(10, 12));
6559
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ref int").WithArguments("lambda return type", "10.0").WithLocation(10, 13),
6565
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ref readonly string").WithArguments("lambda return type", "10.0").WithLocation(11, 13),
6611
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
6614
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(10, 12),
6617
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(11, 12),
6620
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(12, 12));
6657
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
6663
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(10, 12));
6802
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
6805
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 26),
6811
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(10, 12),
6814
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(10, 29),
6817
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(11, 12),
6820
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(11, 29),
6826
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(12, 12),
6829
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(12, 29));
7467
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Main").WithArguments("inferred delegate type", "10.0").WithLocation(6, 18),
7470
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "() => { }").WithArguments("inferred delegate type", "10.0").WithLocation(8, 18),
7473
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "delegate () { }").WithArguments("inferred delegate type", "10.0").WithLocation(10, 18));
7540
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object.ReferenceEquals").WithArguments("inferred delegate type", "10.0").WithLocation(1, 10),
7543
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "() => { }").WithArguments("inferred delegate type", "10.0").WithLocation(2, 10),
7546
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "delegate () { }").WithArguments("inferred delegate type", "10.0").WithLocation(3, 10));
Semantics\GlobalUsingDirectiveTests.cs (2)
39
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(4, 1),
45
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(6, 1));
Semantics\InterpolationTests.cs (4)
2199
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "span").WithArguments("interpolated string handlers", "10.0").WithLocation(4, 22)
3722
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(null, default)").WithArguments("interpolated string handlers", "10.0").WithLocation(1, 29),
5535
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, expression).WithArguments("interpolated string handlers", "10.0").WithLocation(3, 11),
5538
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"new S { Field = ""Field"" }").WithArguments("interpolated string handlers", "10.0").WithLocation(3, 14)
Semantics\LambdaDiscardParametersTests.cs (2)
372
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A]").WithArguments("lambda attributes", "10.0").WithLocation(8, 14),
375
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A]").WithArguments("lambda attributes", "10.0").WithLocation(9, 24));
Semantics\LambdaTests.cs (16)
3677
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A, B]").WithArguments("lambda attributes", "10.0").WithLocation(9, 13),
3680
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A]").WithArguments("lambda attributes", "10.0").WithLocation(10, 14),
3683
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[B]").WithArguments("lambda attributes", "10.0").WithLocation(10, 21),
3686
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A]").WithArguments("lambda attributes", "10.0").WithLocation(11, 24),
3689
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[B]").WithArguments("lambda attributes", "10.0").WithLocation(11, 27));
5009
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("lambda return type", "10.0").WithLocation(6, 22),
5012
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("lambda return type", "10.0").WithLocation(7, 25),
5015
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("lambda return type", "10.0").WithLocation(8, 25));
6030
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "A").WithArguments("lambda return type", "10.0").WithLocation(13, 11),
6033
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I").WithArguments("lambda return type", "10.0").WithLocation(14, 11));
6064
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(10, 11),
6067
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(10, 26),
6073
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "A").WithArguments("lambda return type", "10.0").WithLocation(11, 11),
6076
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(11, 25),
6082
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B1").WithArguments("lambda return type", "10.0").WithLocation(12, 11),
6085
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(12, 26));
Semantics\NullableReferenceTypesTests.cs (1)
84084
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S").WithArguments("parameterless struct constructors", "10.0").WithLocation(5, 14),
Semantics\RawInterpolationTests_Handler.cs (15)
594
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{span}""""""").WithArguments("raw string literals", "11.0").WithLocation(4, 19),
597
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "span").WithArguments("interpolated string handlers", "10.0").WithLocation(4, 24));
2125
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{(null, default)}""""""").WithArguments("raw string literals", "11.0").WithLocation(1, 26),
2131
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(null, default)").WithArguments("interpolated string handlers", "10.0").WithLocation(1, 31),
2134
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{new()}""""""").WithArguments("raw string literals", "11.0").WithLocation(1, 53),
2144
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{(null, default)}{new()}""""""").WithArguments("raw string literals", "11.0").WithLocation(1, 26),
2150
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(null, default)").WithArguments("interpolated string handlers", "10.0").WithLocation(1, 31),
3779
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{new S { Field = """"""Field"""""" }}""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 11),
3782
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"""""""Field""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 32),
3785
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""
3794
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{new S { Field = """"""Field"""""" }}""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 11),
3797
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"""""""Field""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 32));
4082
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{1}""""""").WithArguments("raw string literals", "11.0").WithLocation(5, 17),
4085
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{2}""""""").WithArguments("raw string literals", "11.0").WithLocation(5, 30));
4092
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{1}""""""").WithArguments("raw string literals", "11.0").WithLocation(5, 17));
Semantics\RecordStructTests.cs (25)
268
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(2, 8));
274
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(2, 8));
340
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(4, 12));
346
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(4, 12));
352
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(4, 12));
930
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(1, 8),
933
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(2, 8),
936
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(3, 8),
939
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S2").WithArguments("parameterless struct constructors", "10.0").WithLocation(5, 12));
974
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(1, 8),
977
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S1").WithArguments("parameterless struct constructors", "10.0").WithLocation(3, 5),
983
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(5, 8),
986
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S2").WithArguments("parameterless struct constructors", "10.0").WithLocation(7, 14),
1106
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(2, 15),
1112
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "field").WithArguments("struct field initializers", "10.0").WithLocation(4, 16),
1115
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Property").WithArguments("struct field initializers", "10.0").WithLocation(5, 16));
1140
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(2, 15),
1143
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S").WithArguments("parameterless struct constructors", "10.0").WithLocation(4, 12),
1146
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "field").WithArguments("struct field initializers", "10.0").WithLocation(5, 16),
1149
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Property").WithArguments("struct field initializers", "10.0").WithLocation(6, 16));
1170
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(2, 15));
6872
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "this with { X = 42 }").WithArguments("with on structs", "10.0").WithLocation(13, 16)
8222
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Identity(a) with { A = Identity(30), B = Identity(40) }").WithArguments("with on anonymous types", "10.0").WithLocation(9, 17)
10545
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(8, 8),
10548
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int X").WithArguments("positional fields in records", "10.0").WithLocation(8, 17));
Semantics\RecordTests.cs (10)
232
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "class").WithArguments("record structs", "10.0").WithLocation(2, 8)
1197
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object P2").WithArguments("positional fields in records", "10.0").WithLocation(1, 21),
2709
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "t with { X = 2, Property = 3 }").WithArguments("with on structs", "10.0").WithLocation(11, 13),
5899
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ToString").WithArguments("sealed ToString in record", "10.0").WithLocation(7, 35)
7335
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ToString").WithArguments("sealed ToString in record", "10.0").WithLocation(4, 35)
9943
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int Z").WithArguments("positional fields in records", "10.0").WithLocation(7, 24),
10811
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object P2").WithArguments("positional fields in records", "10.0").WithLocation(1, 21),
14455
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int X").WithArguments("positional fields in records", "10.0").WithLocation(4, 10),
15747
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ToString").WithArguments("sealed ToString in record", "10.0").WithLocation(5, 35),
29224
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int X").WithArguments("positional fields in records", "10.0").WithLocation(8, 10)
Semantics\StructConstructorTests.cs (20)
33
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S").WithArguments("parameterless struct constructors", "10.0").WithLocation(4, 12));
1977
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S1").WithArguments("parameterless struct constructors", "10.0").WithLocation(13, 12),
2017
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S0").WithArguments("parameterless struct constructors", "10.0").WithLocation(7, 12),
2078
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X").WithArguments("struct field initializers", "10.0").WithLocation(5, 12),
2081
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S2").WithArguments("parameterless struct constructors", "10.0").WithLocation(7, 12),
2084
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Y").WithArguments("struct field initializers", "10.0").WithLocation(13, 12));
2542
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X").WithArguments("struct field initializers", "10.0").WithLocation(4, 21),
2545
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X").WithArguments("struct field initializers", "10.0").WithLocation(9, 21),
2548
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S2").WithArguments("parameterless struct constructors", "10.0").WithLocation(11, 12),
2554
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Y").WithArguments("struct field initializers", "10.0").WithLocation(16, 21),
2557
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S3").WithArguments("parameterless struct constructors", "10.0").WithLocation(17, 12),
2563
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Y").WithArguments("struct field initializers", "10.0").WithLocation(22, 21),
2566
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S4").WithArguments("parameterless struct constructors", "10.0").WithLocation(23, 12));
2624
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X").WithArguments("struct field initializers", "10.0").WithLocation(4, 21),
2627
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X").WithArguments("struct field initializers", "10.0").WithLocation(9, 21),
2630
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S2").WithArguments("parameterless struct constructors", "10.0").WithLocation(11, 12),
2636
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Y").WithArguments("struct field initializers", "10.0").WithLocation(16, 21),
2639
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S3").WithArguments("parameterless struct constructors", "10.0").WithLocation(17, 12),
2645
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Y").WithArguments("struct field initializers", "10.0").WithLocation(22, 21),
2648
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S4").WithArguments("parameterless struct constructors", "10.0").WithLocation(23, 12));
Semantics\StructsTests.cs (7)
35
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 7),
64
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "E").WithArguments("struct field initializers", "10.0").WithLocation(3, 25));
88
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "E").WithArguments("struct field initializers", "10.0").WithLocation(3, 25),
91
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S").WithArguments("parameterless struct constructors", "10.0").WithLocation(4, 12));
640
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X").WithArguments("parameterless struct constructors", "10.0").WithLocation(4, 13),
646
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X1").WithArguments("parameterless struct constructors", "10.0").WithLocation(11, 5),
675
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I").WithArguments("struct field initializers", "10.0").WithLocation(3, 16),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\DefaultInterfaceImplementationTests.cs (10)
9066
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 9)
12287
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("static abstract members in interfaces", "11.0").WithLocation(29, 9),
46821
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(24, 13),
46824
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(25, 13)
46847
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 13),
46850
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(10, 13)
46906
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 13),
46909
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(10, 13)
46938
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 34),
46941
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(10, 34)
Symbols\Source\FieldTests.cs (2)
31
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I").WithArguments("struct field initializers", "10.0").WithLocation(3, 16));
48
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I").WithArguments("struct field initializers", "10.0").WithLocation(3, 16));
Symbols\Source\MethodTests.cs (1)
55
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "A").WithArguments("parameterless struct constructors", "10.0").WithLocation(1, 12),
Symbols\Source\PropertyTests.cs (6)
134
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S").WithArguments("parameterless struct constructors", "10.0").WithLocation(24, 12),
158
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 9),
215
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "P").WithArguments("struct field initializers", "10.0").WithLocation(4, 16),
218
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(6, 20));
237
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "P").WithArguments("struct field initializers", "10.0").WithLocation(3, 16),
240
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20));
Symbols\SymbolErrorTests.cs (2)
10808
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(12, 13),
10814
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "i").WithArguments("struct field initializers", "10.0").WithLocation(13, 13),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (44)
Parsing\DeconstructionTests.cs (2)
2133
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(int x1, x2) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(7, 9),
2136
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(x3, int x4) = (1, 2)").WithArguments("Mixed declarations and expressions in deconstruction", "10.0").WithLocation(8, 9));
Parsing\MemberDeclarationParsingTests.cs (29)
2329
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2443
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2568
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2689
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2795
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3210
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3328
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3456
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3581
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3691
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
4256
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4363
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4480
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4594
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4693
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5096
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5207
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5328
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5446
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5549
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
6283
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
6373
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 11),
6521
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
6621
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7008
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7099
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7212
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7316
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7420
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
Parsing\PatternParsingTests2.cs (1)
43
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, ":").WithArguments("extended property patterns", "10.0").WithLocation(1, 42),
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (1)
289
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""
Parsing\RawStringLiteralCompilingTests.cs (1)
217
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"""""""
Parsing\RecordParsing.cs (3)
2513
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(1, 8),
2770
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "class").WithArguments("record structs", "10.0").WithLocation(1, 8),
3690
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(1, 12),
Parsing\SingleLineDeclarationParsingTests.cs (1)
196
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "namespace").WithArguments("file-scoped namespace", "10.0").WithLocation(1, 1));
Syntax\SyntaxTreeTests.cs (6)
367
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(1, 1),
439
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(1, 16),
509
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(1, 1),
583
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(1, 16),
661
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(1, 1),
752
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "global").WithArguments("global using directive", "10.0").WithLocation(1, 16),