262 references to ERR_FeatureNotAvailableInVersion9
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2046
or ErrorCode.
ERR_FeatureNotAvailableInVersion9
LanguageVersion.cs (1)
328
return ErrorCode.
ERR_FeatureNotAvailableInVersion9
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1753
ErrorCode.
ERR_FeatureNotAvailableInVersion9
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (25)
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));
CodeGen\CodeGenTupleTest.cs (1)
5411
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(int, int)").WithArguments("using type alias", "12.0").WithLocation(2, 13),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\NumericIntPtrTests.cs (4)
1372
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "sizeof(nint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
1375
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "sizeof(nuint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 22),
1378
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "sizeof(System.IntPtr)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 22),
1381
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "sizeof(System.UIntPtr)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 22)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
FlowAnalysis\FlowDiagnosticTests.cs (4)
936
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 7),
1326
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "P").WithArguments("struct field initializers", "10.0").WithLocation(3, 16),
1329
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20));
1354
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20));
RefReadonlyParameterTests.cs (2)
2253
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "readonly").WithArguments("ref readonly parameters", "12.0").WithLocation(4, 30));
2290
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "readonly").WithArguments("ref readonly parameters", "12.0").WithLocation(4, 30));
Semantics\PatternMatchingTests5.cs (1)
1602
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, ":").WithArguments("extended property patterns", "10.0").WithLocation(8, 39),
Semantics\RecordTests.cs (10)
232
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "class").WithArguments("record structs", "10.0").WithLocation(2, 8)
1187
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object P2").WithArguments("positional fields in records", "10.0").WithLocation(1, 21),
2764
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "t with { X = 2, Property = 3 }").WithArguments("with on structs", "10.0").WithLocation(11, 13),
5954
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ToString").WithArguments("sealed ToString in record", "10.0").WithLocation(7, 35)
7390
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ToString").WithArguments("sealed ToString in record", "10.0").WithLocation(4, 35)
9998
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int Z").WithArguments("positional fields in records", "10.0").WithLocation(7, 24),
10866
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object P2").WithArguments("positional fields in records", "10.0").WithLocation(1, 21),
14558
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int X").WithArguments("positional fields in records", "10.0").WithLocation(4, 10),
15850
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ToString").WithArguments("sealed ToString in record", "10.0").WithLocation(5, 35),
29350
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int X").WithArguments("positional fields in records", "10.0").WithLocation(8, 10)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (147)
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),
3913
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""ITEM""").WithArguments("constant interpolated strings", "10.0").WithLocation(12, 4),
3916
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Post""").WithArguments("constant interpolated strings", "10.0").WithLocation(15, 23),
3919
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Testing""").WithArguments("constant interpolated strings", "10.0").WithLocation(25, 27),
3922
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""{""Level 5""} {""Number 3""}""").WithArguments("constant interpolated strings", "10.0").WithLocation(26, 27),
3925
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""{$""{""Spinning Top""}""}""").WithArguments("constant interpolated strings", "10.0").WithLocation(27, 27),
3928
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Hybrid""").WithArguments("constant interpolated strings", "10.0").WithLocation(28, 27),
3931
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""321""").WithArguments("constant interpolated strings", "10.0").WithLocation(29, 50),
3934
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""{S1}""").WithArguments("constant interpolated strings", "10.0").WithLocation(30, 27),
3937
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$"" the {S2}""").WithArguments("constant interpolated strings", "10.0").WithLocation(31, 32),
3940
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Failed to {VS}""").WithArguments("constant interpolated strings", "10.0").WithLocation(34, 27),
3946
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Testing""").WithArguments("constant interpolated strings", "10.0").WithLocation(37, 25),
3949
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Level 5""").WithArguments("constant interpolated strings", "10.0").WithLocation(40, 18),
3952
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""ConstantInterpolatedString""").WithArguments("constant interpolated strings", "10.0").WithLocation(44, 30),
3955
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Number 3""").WithArguments("constant interpolated strings", "10.0").WithLocation(46, 22),
3958
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Radio Noise""").WithArguments("constant interpolated strings", "10.0").WithLocation(48, 22),
3961
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""Number 3""").WithArguments("constant interpolated strings", "10.0").WithLocation(49, 31));
Semantics\DelegateTypeTests.cs (30)
8920
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(8, 18),
8923
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(8, 40));
9115
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(8, 18),
9118
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(8, 49));
9301
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
9304
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(10, 12));
9336
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
9339
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(10, 12));
9372
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ref int").WithArguments("lambda return type", "10.0").WithLocation(10, 13),
9378
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "ref readonly string").WithArguments("lambda return type", "10.0").WithLocation(11, 13),
9424
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
9427
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(10, 12),
9430
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(11, 12),
9433
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(12, 12));
9470
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
9476
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(10, 12));
9615
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 12),
9618
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(9, 26),
9624
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(10, 12),
9627
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int").WithArguments("lambda return type", "10.0").WithLocation(10, 29),
9630
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(11, 12),
9633
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(11, 29),
9639
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "string").WithArguments("lambda return type", "10.0").WithLocation(12, 12),
9642
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object").WithArguments("lambda return type", "10.0").WithLocation(12, 29));
10280
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Main").WithArguments("inferred delegate type", "10.0").WithLocation(6, 18),
10283
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "() => { }").WithArguments("inferred delegate type", "10.0").WithLocation(8, 18),
10286
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "delegate () { }").WithArguments("inferred delegate type", "10.0").WithLocation(10, 18));
10353
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "object.ReferenceEquals").WithArguments("inferred delegate type", "10.0").WithLocation(1, 10),
10356
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "() => { }").WithArguments("inferred delegate type", "10.0").WithLocation(2, 10),
10359
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)
2226
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "span").WithArguments("interpolated string handlers", "10.0").WithLocation(4, 22)
3749
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(null, default)").WithArguments("interpolated string handlers", "10.0").WithLocation(1, 29),
5568
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, expression).WithArguments("interpolated string handlers", "10.0").WithLocation(3, 11),
5571
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)
3680
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A, B]").WithArguments("lambda attributes", "10.0").WithLocation(9, 13),
3683
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A]").WithArguments("lambda attributes", "10.0").WithLocation(10, 14),
3686
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[B]").WithArguments("lambda attributes", "10.0").WithLocation(10, 21),
3689
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[A]").WithArguments("lambda attributes", "10.0").WithLocation(11, 24),
3692
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "[B]").WithArguments("lambda attributes", "10.0").WithLocation(11, 27));
5051
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("lambda return type", "10.0").WithLocation(6, 22),
5054
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("lambda return type", "10.0").WithLocation(7, 25),
5057
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("lambda return type", "10.0").WithLocation(8, 25));
6066
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "A").WithArguments("lambda return type", "10.0").WithLocation(13, 11),
6069
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I").WithArguments("lambda return type", "10.0").WithLocation(14, 11));
6100
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(10, 11),
6103
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(10, 26),
6109
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "A").WithArguments("lambda return type", "10.0").WithLocation(11, 11),
6112
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(11, 25),
6118
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B1").WithArguments("lambda return type", "10.0").WithLocation(12, 11),
6121
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "B2").WithArguments("lambda return type", "10.0").WithLocation(12, 26));
Semantics\NativeIntegerTests.cs (4)
3794
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "nint").WithArguments("using type alias", "12.0").WithLocation(1, 12),
3797
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "nuint").WithArguments("using type alias", "12.0").WithLocation(2, 12));
4381
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "sizeof(nint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
4384
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "sizeof(nuint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 22)
Semantics\NullableReferenceTypesTests.cs (1)
87773
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),
3782
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{new S { Field = """"""Field"""""" }}""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 11),
3785
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"""""""Field""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 32),
3788
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""
3797
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{new S { Field = """"""Field"""""" }}""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 11),
3800
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"""""""Field""""""").WithArguments("raw string literals", "11.0").WithLocation(3, 32));
4086
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{1}""""""").WithArguments("raw string literals", "11.0").WithLocation(5, 17),
4089
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{2}""""""").WithArguments("raw string literals", "11.0").WithLocation(5, 30));
4096
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, @"$""""""{1}""""""").WithArguments("raw string literals", "11.0").WithLocation(5, 17));
Semantics\RecordStructTests.cs (27)
255
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(int x, int y)").WithArguments("primary constructors", "12.0").WithLocation(2, 13),
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));
327
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "(int x, int y)").WithArguments("primary constructors", "12.0").WithLocation(4, 17),
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));
6974
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "this with { X = 42 }").WithArguments("with on structs", "10.0").WithLocation(13, 16)
8334
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "Identity(a) with { A = Identity(30), B = Identity(40) }").WithArguments("with on anonymous types", "10.0").WithLocation(9, 17)
10615
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(8, 8),
10618
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "int X").WithArguments("positional fields in records", "10.0").WithLocation(8, 17));
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)
36
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 7),
65
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "E").WithArguments("struct field initializers", "10.0").WithLocation(3, 25));
89
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "E").WithArguments("struct field initializers", "10.0").WithLocation(3, 25),
92
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S").WithArguments("parameterless struct constructors", "10.0").WithLocation(4, 12));
641
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X").WithArguments("parameterless struct constructors", "10.0").WithLocation(4, 13),
647
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "X1").WithArguments("parameterless struct constructors", "10.0").WithLocation(11, 5),
676
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I").WithArguments("struct field initializers", "10.0").WithLocation(3, 16),
Semantics\TopLevelStatementsTests.cs (1)
1121
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "d").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(3, 9)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (22)
Symbols\DefaultInterfaceImplementationTests.cs (10)
9251
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 9)
12472
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "T").WithArguments("static abstract members in interfaces", "11.0").WithLocation(29, 9),
47012
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(24, 13),
47015
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(25, 13)
47038
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 13),
47041
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(10, 13)
47097
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 13),
47100
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(10, 13)
47129
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x == y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(9, 34),
47132
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "x != y").WithArguments("static abstract members in interfaces", "11.0").WithLocation(10, 34)
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1917
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "readonly").WithArguments("ref readonly parameters", "12.0").WithLocation(9, 23),
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)
56
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "A").WithArguments("parameterless struct constructors", "10.0").WithLocation(1, 12),
Symbols\Source\PropertyTests.cs (6)
135
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "S").WithArguments("parameterless struct constructors", "10.0").WithLocation(24, 12),
159
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 9),
216
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "P").WithArguments("struct field initializers", "10.0").WithLocation(4, 16),
219
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(6, 20));
238
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "P").WithArguments("struct field initializers", "10.0").WithLocation(3, 16),
241
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20));
Symbols\SymbolErrorTests.cs (2)
10951
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "a").WithArguments("struct field initializers", "10.0").WithLocation(12, 13),
10957
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)
2295
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2409
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2534
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2655
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
2761
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3176
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3294
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3422
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3547
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
3657
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 22),
4221
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4328
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4445
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4559
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
4658
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5061
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5172
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5293
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5411
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
5514
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 15),
6246
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
6336
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 11),
6484
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
6584
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
6971
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7062
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7175
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I.").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7279
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "N.I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
7383
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "I ").WithArguments("static abstract members in interfaces", "11.0").WithLocation(1, 20),
Parsing\PatternParsingTests2.cs (1)
44
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)
2663
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "struct").WithArguments("record structs", "10.0").WithLocation(1, 8),
2920
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion9
, "class").WithArguments("record structs", "10.0").WithLocation(1, 8),
3840
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),