265 references to ERR_FeatureNotAvailableInVersion12
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2419
or ErrorCode.
ERR_FeatureNotAvailableInVersion12
LanguageVersion.cs (1)
354
return ErrorCode.
ERR_FeatureNotAvailableInVersion12
;
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1765
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)
2511
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 32));
2579
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(17, 41));
2688
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 32));
3022
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 15));
3071
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 15));
3113
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 9));
3443
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 24)
3580
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(16, 24)
3846
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 32));
3964
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(16, 32));
4075
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 32));
4139
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(15, 26));
4179
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "s").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 26));
CodeGen\CodeGenAwaitUsingTests.cs (8)
5034
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 16));
5153
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "(await GetC()).GetR()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 16));
5192
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 16));
5274
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 22));
5309
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22));
5347
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new R()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 22));
5383
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 21));
5434
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 (155)
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)
14109
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
14112
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 22)
14167
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 22),
14170
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 22),
14173
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 22),
14176
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var s = new S2()").WithArguments("ref struct interfaces", "13.0").WithLocation(10, 22)
14183
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IAsyncDisposable").WithArguments("ref struct interfaces", "13.0").WithLocation(5, 24),
14186
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S2()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(25, 22),
14189
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(29, 22)
14256
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 75),
14259
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new T()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 22),
14262
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 22),
14265
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(23, 63)
14313
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 77),
14316
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new T()").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 22),
14319
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 22),
14322
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(23, 63)
16587
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 33)
16594
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IAsyncEnumerable<int>").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 23)
16645
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 73)
16688
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(6, 75)
17794
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 15)
17870
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "await foreach (var i in new S1()) {}").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 9),
17873
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(6, 15)
17880
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IAsyncDisposable").WithArguments("ref struct interfaces", "13.0").WithLocation(14, 24),
17883
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(40, 15)
17953
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(13, 85),
17956
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(21, 65),
17959
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(22, 73),
17962
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "foreach").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(24, 15)
19346
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "new S()").WithArguments("ref struct interfaces", "13.0").WithLocation(6, 27)
19353
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "IEnumerable").WithArguments("ref struct interfaces", "13.0").WithLocation(4, 23)
19403
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(6, 60)
19442
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 62)
20443
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 54)
20456
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Helper.Test").WithArguments("allows ref struct constraint", "13.0").WithLocation(200, 9)
20488
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 54)
20700
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 41)
20713
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "S1").WithArguments("allows ref struct constraint", "13.0").WithLocation(200, 16)
20745
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(100, 41)
29126
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 37),
29129
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "{ 200, 40, 6 }").WithArguments("ref struct interfaces", "13.0").WithLocation(12, 39),
29132
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(20, 62)
29139
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 37),
29142
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(20, 62),
29145
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "I1").WithArguments("ref struct interfaces", "13.0").WithLocation(24, 23)
29207
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Test").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 17),
29210
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "T").WithArguments("allows ref struct constraint", "13.0").WithLocation(4, 22),
29213
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 33),
29216
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "T").WithArguments("allows ref struct constraint", "13.0").WithLocation(7, 22)
29223
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(5, 33),
29226
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "ref struct").WithArguments("allows ref struct constraint", "13.0").WithLocation(12, 29),
29229
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\ExtensionTests.cs (4)
38963
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "object.M2()").WithArguments("extensions", "14.0").WithLocation(1, 1),
38966
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "object.M2").WithArguments("extensions", "14.0").WithLocation(2, 19),
38969
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "object.M2").WithArguments("extensions", "14.0").WithLocation(3, 9),
38972
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "object.P2").WithArguments("extensions", "14.0").WithLocation(5, 5));
Semantics\InlineArrayTests.cs (27)
20485
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26));
20950
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 35));
21165
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26),
21168
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 26));
21210
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26));
21261
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26));
21312
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 26),
21315
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 26));
21379
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(21, 35));
21419
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
21463
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
21556
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 35));
21608
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(13, 35));
21906
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26));
22228
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(19, 35));
22410
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26),
22413
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(19, 26));
22463
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26));
22522
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26));
22581
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "buffer").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(18, 26),
22584
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(19, 26));
22646
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(20, 35));
22686
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
22730
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 35));
22819
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "y").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 35));
22869
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "f").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(11, 35));
23427
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)
19627
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "System.ArgIterator").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(8, 25),
19630
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "var").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 9),
Semantics\ParamsCollectionTests.cs (6)
3974
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> a").WithArguments("params collections", "13.0").WithLocation(4, 23)
4068
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> a").WithArguments("params collections", "13.0").WithLocation(22, 30)
4136
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> a").WithArguments("params collections", "13.0").WithLocation(6, 19),
4139
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.ReadOnlySpan<long> b").WithArguments("params collections", "13.0").WithLocation(21, 13)
4183
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "params System.Collections.Generic.IEnumerable<long> a").WithArguments("params collections", "13.0").WithLocation(23, 30)
4307
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)
2390
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int*").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(37, 40),
2393
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "&x").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(39, 23),
2396
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "Local(&x)").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(39, 17),
2402
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)
15444
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "unsafe").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(7, 7),
15447
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "int *").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 10),
15450
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "&i").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(9, 19),
15453
Diagnostic(ErrorCode.
ERR_FeatureNotAvailableInVersion12
, "p").WithArguments("ref and unsafe in async and iterator methods", "13.0").WithLocation(10, 24),
15456
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));