205 references to ERR_FeatureInPreview
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2000
or ErrorCode.
ERR_FeatureInPreview
Errors\MessageID.cs (1)
478
? new CSDiagnosticInfo(ErrorCode.
ERR_FeatureInPreview
, feature.Localize())
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (192)
UnionsTests.cs (82)
985
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(47, 21),
988
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(52, 21),
991
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(52, 27),
994
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(57, 21),
997
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "null").WithArguments("unions").WithLocation(62, 21),
1000
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(67, 21)
2004
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 }").WithArguments("unions").WithLocation(44, 21),
2007
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 or 11 }").WithArguments("unions").WithLocation(49, 21),
2010
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> { Value: ""11"" }").WithArguments("unions").WithLocation(54, 21),
2013
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<object> { Value: not A or B }").WithArguments("unions").WithLocation(58, 21),
2107
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 }").WithArguments("unions").WithLocation(47, 21),
2110
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> { Value: 10 or 11 }").WithArguments("unions").WithLocation(52, 21),
2113
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> { Value: ""11"" }").WithArguments("unions").WithLocation(57, 21),
2116
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<object> { Value: not A or B }").WithArguments("unions").WithLocation(58, 21),
2252
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(_, 10)").WithArguments("unions").WithLocation(27, 21),
2255
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(_, 10)").WithArguments("unions").WithLocation(32, 21)
2335
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10, _)").WithArguments("unions").WithLocation(50, 21),
2338
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10 or 11, _)").WithArguments("unions").WithLocation(55, 21),
2341
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> (""11"", _)").WithArguments("unions").WithLocation(60, 21)
2424
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10, _)").WithArguments("unions").WithLocation(53, 21),
2427
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "S2<int> (10 or 11, _)").WithArguments("unions").WithLocation(58, 21),
2430
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"S2<string> (""11"", _)").WithArguments("unions").WithLocation(63, 21)
2522
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "u is int").WithArguments("unions").WithLocation(29, 16),
2525
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "u is int").WithArguments("unions").WithLocation(34, 16)
2578
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int").WithArguments("unions").WithLocation(28, 27),
2581
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string").WithArguments("unions").WithLocation(33, 21)
2636
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int").WithArguments("unions").WithLocation(30, 27),
2639
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "string").WithArguments("unions").WithLocation(35, 21)
2694
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(30, 21),
2697
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(35, 21)
2754
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(32, 21),
2757
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int x").WithArguments("unions").WithLocation(37, 21)
2843
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not 10").WithArguments("unions").WithLocation(46, 21),
2846
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not (10 or 11)").WithArguments("unions").WithLocation(51, 21),
2849
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"not (""11"" and ['1', '1'])").WithArguments("unions").WithLocation(56, 21),
2852
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not null").WithArguments("unions").WithLocation(61, 21),
2855
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not ({ } and int)").WithArguments("unions").WithLocation(66, 21)
2946
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not 10").WithArguments("unions").WithLocation(51, 21),
2949
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not (10 or 11)").WithArguments("unions").WithLocation(56, 21),
2952
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"not (""11"" and ['1', '1'])").WithArguments("unions").WithLocation(61, 21),
2955
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not null").WithArguments("unions").WithLocation(66, 21),
2958
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "not ({ } and int)").WithArguments("unions").WithLocation(71, 21)
3412
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(33, 21),
3415
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(33, 27),
3418
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(38, 21),
3421
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(38, 27)
3521
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(27, 18),
3524
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(37, 18)
3920
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(10)").WithArguments("unions").WithLocation(40, 21),
3923
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(45, 22),
3926
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(45, 28),
3929
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(50, 22),
3932
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(null)").WithArguments("unions").WithLocation(55, 21)
4011
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(10)").WithArguments("unions").WithLocation(44, 21),
4014
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(49, 22),
4017
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(49, 28),
4020
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(54, 22),
4023
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(null)").WithArguments("unions").WithLocation(59, 21)
4078
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, ">=10").WithArguments("unions").WithLocation(30, 21),
4081
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "<10").WithArguments("unions").WithLocation(35, 21),
4084
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(35, 28)
4141
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, ">=10").WithArguments("unions").WithLocation(32, 21),
4144
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "<10").WithArguments("unions").WithLocation(37, 21),
4147
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "11").WithArguments("unions").WithLocation(37, 28)
4252
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(31, 22)
4346
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(32, 27)
4443
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(29, 22),
4446
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(34, 22)
4498
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(23, 29)
4549
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(23, 22)
4642
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(23, 26)
4728
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(24, 33)
5072
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(35, 18),
5075
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(36, 18),
5078
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(46, 18),
5081
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(47, 18)
8665
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "10").WithArguments("unions").WithLocation(37, 27),
8668
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "null").WithArguments("unions").WithLocation(55, 16),
8671
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"""11""").WithArguments("unions").WithLocation(61, 16)
8977
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(S1)10").WithArguments("unions").WithLocation(37, 27),
8980
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(S1)null").WithArguments("unions").WithLocation(55, 16),
8983
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, @"(S1)""11""").WithArguments("unions").WithLocation(61, 16)
UnsafeEvolutionTests.cs (110)
849
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
874
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "GetPointer()").WithArguments("updated memory safety rules").WithLocation(1, 9),
877
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1));
914
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 9));
1011
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 11),
1014
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1));
1096
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1099
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 10),
1102
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(2, 9));
1152
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 9),
1155
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(7, 18),
1158
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(7, 17));
1241
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1283
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1286
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 12),
1289
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "->").WithArguments("updated memory safety rules").WithLocation(2, 13));
1348
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1390
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1393
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 14),
1396
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(2, 13));
1421
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1470
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1473
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1476
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(2, 2),
1479
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 9),
1482
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(3, 10));
1537
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1540
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1546
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 9),
1598
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1601
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1604
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[0]").WithArguments("updated memory safety rules").WithLocation(2, 1),
1607
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[0] = null").WithArguments("updated memory safety rules").WithLocation(2, 1),
1610
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 5),
1613
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[1]").WithArguments("updated memory safety rules").WithLocation(3, 5),
1616
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "_ = x[1]").WithArguments("updated memory safety rules").WithLocation(3, 1));
1671
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1674
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1680
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 5),
1712
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1749
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1836
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 11),
1839
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1));
1934
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1937
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x()").WithArguments("updated memory safety rules").WithLocation(2, 12));
1962
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1));
2008
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 11),
2011
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1),
2014
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x()").WithArguments("updated memory safety rules").WithLocation(3, 12));
2055
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2058
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&x").WithArguments("updated memory safety rules").WithLocation(2, 10));
2100
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2188
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = &x) { }").WithArguments("updated memory safety rules").WithLocation(6, 9),
2191
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 16),
2194
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&x").WithArguments("updated memory safety rules").WithLocation(6, 25));
2245
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = new S()) { }").WithArguments("updated memory safety rules").WithLocation(5, 9),
2248
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(5, 16));
2293
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = &x) { }").WithArguments("updated memory safety rules").WithLocation(2, 1),
2296
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 8),
2408
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
2411
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(2, 1),
2414
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p++").WithArguments("updated memory safety rules").WithLocation(2, 1),
2417
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(3, 1),
2420
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(3, 11),
2423
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p + 2").WithArguments("updated memory safety rules").WithLocation(3, 11),
2426
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(4, 10),
2429
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(4, 14),
2432
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(5, 10),
2435
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p2").WithArguments("updated memory safety rules").WithLocation(5, 14));
2470
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "sizeof(nint)").WithArguments("updated memory safety rules").WithLocation(2, 5),
2473
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "sizeof(S)").WithArguments("updated memory safety rules").WithLocation(3, 5));
2527
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2530
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s.y").WithArguments("updated memory safety rules").WithLocation(2, 10),
2533
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s.x").WithArguments("updated memory safety rules").WithLocation(3, 9),
2536
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(3, 12),
2539
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[5]").WithArguments("updated memory safety rules").WithLocation(7, 22));
2634
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
2637
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "stackalloc int[3]").WithArguments("updated memory safety rules").WithLocation(1, 10),
2640
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "stackalloc int[5]").WithArguments("updated memory safety rules").WithLocation(8, 26),
2879
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(2, 2),
2882
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(5, 6),
2885
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(6, 6),
2888
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(8, 6),
2891
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(9, 6),
2894
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(10, 6),
2897
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(11, 6),
2900
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(12, 6));
2981
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "c.M()").WithArguments("updated memory safety rules").WithLocation(2, 1));
2992
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(3, 6));
3456
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(4, 6),
3459
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Diagnostics.CodeAnalysis.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(5, 6),
3465
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "new C().M1()").WithArguments("updated memory safety rules").WithLocation(1, 1));
8096
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M2").WithArguments("updated memory safety rules").WithLocation(8, 24),
8099
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M3").WithArguments("updated memory safety rules").WithLocation(9, 51),
8102
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M4").WithArguments("updated memory safety rules").WithLocation(10, 69));
8582
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "F").WithArguments("updated memory safety rules").WithLocation(7, 28));
8681
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("updated memory safety rules").WithLocation(8, 23),
8684
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(8, 28),
8687
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("updated memory safety rules").WithLocation(9, 30),
8690
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(9, 55),
8693
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P4").WithArguments("updated memory safety rules").WithLocation(10, 23),
8696
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(10, 73));
8883
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "this").WithArguments("updated memory safety rules").WithLocation(4, 23),
8886
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "get").WithArguments("updated memory safety rules").WithLocation(4, 37),
8889
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(4, 42));
9084
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46),
9087
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46),
9090
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46));
9261
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "C").WithArguments("updated memory safety rules").WithLocation(4, 19));
9430
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "+=").WithArguments("updated memory safety rules").WithLocation(4, 33));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\CollectionExpressionTests_WithElement_Extra.cs (9)
38
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(1, 12),
66
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 19),
72
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 30),
103
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 16),
106
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 28),
155
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 5),
158
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(3, 5),
164
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(4, 5),
200
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(3, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullConditionalAssignmentTests.cs (1)
123
.Where(diag => diag.Code == (int)ErrorCode.
ERR_FeatureInPreview
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
364
case ErrorCode.
ERR_FeatureInPreview
: