261 references to ERR_FeatureNotAvailableInVersion12
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2421
or ErrorCode.
ERR_FeatureNotAvailableInVersion12
LanguageVersion.cs (1)
334
return ErrorCode.
ERR_FeatureNotAvailableInVersion12
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1756
ErrorCode.
ERR_FeatureNotAvailableInVersion12
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (25)
CodeGen\CodeGenAsyncIteratorTests.cs (4)
675
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 24));
715
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 24));
874
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 24));
922
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 24));
CodeGen\CodeGenAwaitForeachTests.cs (13)
1704
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 32));
1771
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(17, 41));
1822
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 32));
2092
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 15));
2141
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 15));
2183
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 9));
2375
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 24)
2446
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(16, 24)
2610
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 32));
2674
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(16, 32));
2718
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 32));
2782
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(15, 26));
2822
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 26));
CodeGen\CodeGenAwaitUsingTests.cs (8)
3128
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 16));
3247
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "(await GetC()).GetR()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 16));
3286
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 16));
3368
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 22));
3403
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22));
3441
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 22));
3477
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 21));
3528
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(15, 22));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (18)
CodeGen\IndexAndRangeTests.cs (14)
205
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[Id(^1)]").WithArguments("implicit indexer initializer", "13.0").WithLocation(17, 52),
208
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[Id(^1)]").WithArguments("implicit indexer initializer", "13.0").WithLocation(18, 37)
241
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[Id(^1)]").WithArguments("implicit indexer initializer", "13.0").WithLocation(5, 51)
283
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[Id(^1)]").WithArguments("implicit indexer initializer", "13.0").WithLocation(8, 51)
1725
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[i1]").WithArguments("implicit indexer initializer", "13.0").WithLocation(7, 42),
1728
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[i2]").WithArguments("implicit indexer initializer", "13.0").WithLocation(7, 51),
1731
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[i3]").WithArguments("implicit indexer initializer", "13.0").WithLocation(7, 62)
1767
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[Id(i1)]").WithArguments("implicit indexer initializer", "13.0").WithLocation(7, 42)
1961
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[^1]").WithArguments("implicit indexer initializer", "13.0").WithLocation(8, 40),
1964
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[^2]").WithArguments("implicit indexer initializer", "13.0").WithLocation(8, 49),
1967
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[^3]").WithArguments("implicit indexer initializer", "13.0").WithLocation(8, 60),
1970
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[^2]").WithArguments("implicit indexer initializer", "13.0").WithLocation(8, 73),
1973
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[^4]").WithArguments("implicit indexer initializer", "13.0").WithLocation(8, 82)
2489
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "[Id(r)]").WithArguments("implicit indexer initializer", "13.0").WithLocation(16, 32)
Emit\NumericIntPtrTests.cs (4)
1386
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(nint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
1389
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(nuint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 22),
1392
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(System.IntPtr)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 22),
1395
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(System.UIntPtr)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 22)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (151)
OverloadResolutionPriorityTests.cs (3)
866
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "OverloadResolutionPriority(1)").WithArguments("overload resolution priority", "13.0").WithLocation(5, 6),
869
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "OverloadResolutionPriority(1)").WithArguments("overload resolution priority", "13.0").WithLocation(9, 6),
872
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "OverloadResolutionPriority(1)").WithArguments("overload resolution priority", "13.0").WithLocation(35, 6));
RefStructInterfacesTests.cs (96)
51
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 6)
84
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 6)
166
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 6)
198
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 6)
283
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(8, 10)
321
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(8, 10)
413
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 6)
445
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 6)
531
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(8, 10)
569
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(8, 10)
815
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(8, 6)
849
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(8, 6)
1036
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(100, 6)
1360
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(200, 10)
1368
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(100, 6)
1415
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(100, 6),
1418
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(200, 10)
1426
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(100, 6)
1435
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(200, 10)
1936
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(200, 10)
1944
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(100, 6)
1991
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(100, 6),
1994
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(200, 10)
2002
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(100, 6)
2011
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "UnscopedRef").WithArguments("ref struct interfaces", "13.0").WithLocation(200, 10)
4393
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(3, 22)
4443
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 26)
5472
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "T").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 29)
5605
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "T").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 16)
5869
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "I1").WithArguments("ref struct interfaces", "13.0").WithLocation(5, 17)
7325
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 16),
7328
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var s = new S2()").WithArguments("ref struct interfaces", "13.0").WithLocation(10, 16)
7335
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "System.IDisposable").WithArguments("ref struct interfaces", "13.0").WithLocation(2, 24)
7391
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 67)
8736
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 27)
8743
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IEnumerable<int>").WithArguments("ref struct interfaces", "13.0").WithLocation(4, 23)
8793
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(6, 65)
8832
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 67)
11817
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach (var i in new S1()) {}").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 9)
11824
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "System.IDisposable").WithArguments("ref struct interfaces", "13.0").WithLocation(10, 24)
11881
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(8, 105),
11884
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(16, 65),
11887
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(17, 75)
13711
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
13714
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 22)
13769
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 22),
13772
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
13775
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 22),
13778
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var s = new S2()").WithArguments("ref struct interfaces", "13.0").WithLocation(10, 22)
13785
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IAsyncDisposable").WithArguments("ref struct interfaces", "13.0").WithLocation(5, 24),
13788
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(25, 22),
13791
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(29, 22)
13858
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 75),
13861
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new T()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 22),
13864
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 22),
13867
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(23, 63)
13915
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 77),
13918
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new T()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 22),
13921
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 22),
13924
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(23, 63)
16189
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 33)
16196
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IAsyncEnumerable<int>").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 23)
16247
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 73)
16290
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(6, 75)
17396
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 15)
17472
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "await foreach (var i in new S1()) {}").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 9),
17475
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 15)
17482
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IAsyncDisposable").WithArguments("ref struct interfaces", "13.0").WithLocation(14, 24),
17485
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(40, 15)
17555
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(13, 85),
17558
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(21, 65),
17561
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(22, 73),
17564
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(24, 15)
18948
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 27)
18955
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IEnumerable").WithArguments("ref struct interfaces", "13.0").WithLocation(4, 23)
19005
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(6, 60)
19044
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 62)
20045
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 54)
20058
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Helper.Test").WithArguments("allows ref struct constraint", "13.0").WithLocation(200, 9)
20090
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 54)
20302
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 41)
20315
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "S1").WithArguments("allows ref struct constraint", "13.0").WithLocation(200, 16)
20347
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 41)
28730
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 37),
28733
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "{ 200, 40, 6 }").WithArguments("ref struct interfaces", "13.0").WithLocation(12, 39),
28736
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(20, 62)
28743
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 37),
28746
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(20, 62),
28749
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "I1").WithArguments("ref struct interfaces", "13.0").WithLocation(24, 23)
28811
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Test").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 17),
28814
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "T").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 22),
28817
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 33),
28820
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "T").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 22)
28827
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 33),
28830
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(12, 29),
28833
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(18, 29)
RefUnsafeInIteratorAndAsyncTests.cs (16)
36
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 17),
39
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "z").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 26));
64
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 17),
67
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "z").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 26));
92
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 17),
95
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "z").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 26));
122
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "R").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 9),
125
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "R").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 16));
178
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "System.TypedReference").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 9));
254
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 21),
289
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 17),
327
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 17));
421
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Span<int>").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 9));
576
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 17),
579
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 9));
841
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 9));
Semantics\InlineArrayTests.cs (27)
20353
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26));
20815
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 35));
21030
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26),
21033
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 26));
21075
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26));
21126
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26));
21177
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26),
21180
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 26));
21244
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(21, 35));
21284
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
21328
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
21421
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 35));
21473
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 35));
21771
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26));
22093
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(19, 35));
22275
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26),
22278
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(19, 26));
22328
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26));
22387
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26));
22446
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26),
22449
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(19, 26));
22511
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(20, 35));
22551
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
22595
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
22684
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 35));
22734
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 35));
23292
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(3, 1),
Semantics\LockTests.cs (1)
1633
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "l").WithArguments("Lock object", "13.0").WithLocation(5, 7));
Semantics\OutVarTests.cs (2)
19632
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "System.ArgIterator").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 25),
19635
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 9),
Semantics\ParamsCollectionTests.cs (6)
3986
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> a").WithArguments("params collections", "13.0").WithLocation(4, 23)
4080
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> a").WithArguments("params collections", "13.0").WithLocation(22, 30)
4148
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> a").WithArguments("params collections", "13.0").WithLocation(6, 19),
4151
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> b").WithArguments("params collections", "13.0").WithLocation(21, 13)
4195
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.Collections.Generic.IEnumerable<long> a").WithArguments("params collections", "13.0").WithLocation(23, 30)
4319
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.Collections.Generic.IEnumerable<long> a").WithArguments("params collections", "13.0").WithLocation(23, 25)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (61)
Semantics\LocalFunctionTests.cs (4)
2398
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int*").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(37, 40),
2401
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "&x").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(39, 23),
2404
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Local(&x)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(39, 17),
2410
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "M4").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(33, 36),
Semantics\NativeIntegerTests.cs (2)
4390
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(nint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
4393
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(nuint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 22)
Semantics\RefLocalsAndReturnsTests.cs (12)
1298
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "x").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 28));
1339
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "x").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 28));
3194
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 17),
3197
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "z").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 21));
3230
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(14, 13));
3259
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 13));
3355
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 17),
3358
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "z").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 21));
3389
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 13));
3419
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 13));
3457
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Span<int>").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 5));
3487
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Span<int>").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 5));
Semantics\SemanticErrorTests.cs (5)
15399
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 7),
15402
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int *").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 10),
15405
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "&i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 19),
15408
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "p").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 24),
15411
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IteratorMeth2").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(14, 29)
Semantics\SpanStackSafetyTests.cs (5)
993
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(15, 9));
1057
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 9));
1135
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(33, 9));
1204
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(17, 9));
1830
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ReadOnlySpan<int>").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(4, 1));
Semantics\TopLevelStatementsTests.cs (1)
1128
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "d").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(3, 9)
Semantics\UnsafeTests.cs (32)
281
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Goo").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(4, 56));
304
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 9));
327
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 9));
351
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 35));
382
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(5, 9),
385
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int*").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 13),
388
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int*").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 9));
424
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 9),
427
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int *").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 13),
430
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "&x").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 22),
433
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "p").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 14),
436
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "p").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 19));
471
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(5, 9),
474
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int *").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 13),
477
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "&x").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 22),
480
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "p").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 14),
483
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "p").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 19));
613
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 9),
616
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(nint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 17));
642
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(5, 9));
667
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(5, 9));
927
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "sizeof(nint)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 25));
1129
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int*").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(5, 9));
1266
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "M").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(3, 56));
1549
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "+").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(3, 78));
1777
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "get").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(5, 9));
2048
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "get").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(5, 9));
2304
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "M").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(4, 56));
3204
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Iterator").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(4, 56)); //this is for putting "unsafe" on an iterator, not for the parameter type
3223
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Iterator").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(4, 56)); //this is for putting "unsafe" on an iterator, not for the parameter type
3262
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Iterator").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(4, 56)
3272
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Iterator").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(4, 56)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
LexicalAndXml\LexicalErrorTests.cs (3)
271
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, @"\e").WithArguments("string escape character", "13.0").WithLocation(5, 21));
290
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, @"\e").WithArguments("string escape character", "13.0").WithLocation(5, 22));
309
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, @"\e").WithArguments("string escape character", "13.0").WithLocation(5, 19));